added colors to tags (#1631)

This commit is contained in:
jojoemade
2020-04-14 14:18:11 +02:00
committed by GitHub
parent 1dfceeea99
commit 0bc9e74853
9 changed files with 55 additions and 7 deletions

View File

@@ -23,6 +23,7 @@ class TagTest extends TestCase
$sut = new Tag();
$this->assertNull($sut->getId());
$this->assertNull($sut->getName());
$this->assertNull($sut->getColor());
}
public function testSetterAndGetter()
@@ -32,6 +33,9 @@ class TagTest extends TestCase
$this->assertInstanceOf(Tag::class, $sut->setName('foo'));
$this->assertEquals('foo', $sut->getName());
$this->assertEquals('foo', (string) $sut);
$this->assertInstanceOf(Tag::class, $sut->setColor('#fffccc'));
$this->assertEquals('#fffccc', $sut->getColor());
}
public function testWithTimesheet()