diff options
Diffstat (limited to 'tests/integration/AppTest.php')
-rw-r--r-- | tests/integration/AppTest.php | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/tests/integration/AppTest.php b/tests/integration/AppTest.php index 6575fbb8..287e6299 100644 --- a/tests/integration/AppTest.php +++ b/tests/integration/AppTest.php @@ -1,8 +1,8 @@ <?php -require_once __DIR__.'/Base.php'; +require_once __DIR__.'/BaseIntegrationTest.php'; -class AppTest extends Base +class AppTest extends BaseIntegrationTest { public function testGetTimezone() { @@ -31,4 +31,24 @@ class AppTest extends Base $this->assertEquals('Project Member', $roles['project-member']); $this->assertEquals('Project Viewer', $roles['project-viewer']); } + + public function testGetDefaultColor() + { + $this->assertEquals('yellow', $this->user->getDefaultTaskColor()); + } + + public function testGetDefaultColors() + { + $colors = $this->user->getDefaultTaskColors(); + $this->assertNotEmpty($colors); + $this->assertArrayHasKey('red', $colors); + } + + public function testGetColorList() + { + $colors = $this->user->getColorList(); + $this->assertNotEmpty($colors); + $this->assertArrayHasKey('red', $colors); + $this->assertEquals('Red', $colors['red']); + } } |