diff options
author | Julian Maurice <julian.maurice@biblibre.com> | 2018-08-09 21:35:11 +0200 |
---|---|---|
committer | Julian Maurice <julian.maurice@biblibre.com> | 2018-08-11 10:15:13 +0200 |
commit | 9d4cd31e1aae02e9980932c67036fdfe574e3432 (patch) | |
tree | 6fca71d93aaed9032a0d771a0b8111d79fdc99b6 /tests/units/Formatter | |
parent | ae3ade0908bae350488260ee5d878a2ffbff605a (diff) |
Allow to associate tags to colors
The color is then used as background in the board, list and task details
views
Diffstat (limited to 'tests/units/Formatter')
-rw-r--r-- | tests/units/Formatter/BoardFormatterTest.php | 3 | ||||
-rw-r--r-- | tests/units/Formatter/TaskListFormatterTest.php | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/units/Formatter/BoardFormatterTest.php b/tests/units/Formatter/BoardFormatterTest.php index 1b0ace1d..7b90eb00 100644 --- a/tests/units/Formatter/BoardFormatterTest.php +++ b/tests/units/Formatter/BoardFormatterTest.php @@ -375,11 +375,13 @@ class BoardFormatterTest extends Base 'id' => 1, 'name' => 'My tag 1', 'task_id' => 1, + 'color_id' => null, ), array( 'id' => 2, 'name' => 'My tag 2', 'task_id' => 1, + 'color_id' => null, ), ); @@ -391,6 +393,7 @@ class BoardFormatterTest extends Base 'id' => 3, 'name' => 'My tag 3', 'task_id' => 2, + 'color_id' => null, ), ); diff --git a/tests/units/Formatter/TaskListFormatterTest.php b/tests/units/Formatter/TaskListFormatterTest.php index a6e44d38..d079ed7e 100644 --- a/tests/units/Formatter/TaskListFormatterTest.php +++ b/tests/units/Formatter/TaskListFormatterTest.php @@ -37,11 +37,13 @@ class TaskListFormatterTest extends Base 'id' => 1, 'name' => 'My tag 1', 'task_id' => 1, + 'color_id' => null, ), array( 'id' => 2, 'name' => 'My tag 2', 'task_id' => 1, + 'color_id' => null, ), ); @@ -52,10 +54,11 @@ class TaskListFormatterTest extends Base 'id' => 3, 'name' => 'My tag 3', 'task_id' => 2, + 'color_id' => null, ), ); $this->assertEquals($expected, $listing[1]['tags']); $this->assertEquals(array(), $listing[2]['tags']); } -}
\ No newline at end of file +} |