Skip to content
Snippets Groups Projects
Verified Commit 35bf95c1 authored by Damien's avatar Damien
Browse files

FEAT #9102 User preferences writingColor default

parent 8d398794
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ CREATE TABLE users
picture text,
enabled boolean DEFAULT TRUE,
mode character varying(50) NOT NULL,
preferences json NOT NULL DEFAULT '{"writingMode" : "direct", "writingSize" : 1, "writingColor" : "#FFFFFF"}',
preferences json NOT NULL DEFAULT '{"writingMode" : "direct", "writingSize" : 1, "writingColor" : "#000000"}',
cookie_key character varying(255) DEFAULT NULL::character varying,
cookie_date timestamp without time zone,
password_modification_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
......
......@@ -197,7 +197,7 @@ class UserControllerTest extends TestCase
'preferences' => [
'writingMode' => 'direct',
'writingSize' => 1,
'writingColor' => '#FFFFFF',
'writingColor' => '#000000',
]
];
......@@ -215,7 +215,7 @@ class UserControllerTest extends TestCase
$this->assertSame('JANE', $responseBody->user->lastname);
$this->assertSame('direct', $responseBody->user->preferences->writingMode);
$this->assertSame(1, $responseBody->user->preferences->writingSize);
$this->assertSame('#FFFFFF', $responseBody->user->preferences->writingColor);
$this->assertSame('#000000', $responseBody->user->preferences->writingColor);
}
public function testCreateSignature()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment