Optimized layer attribut

This commit is contained in:
Kevin Frantz
2019-01-16 21:47:41 +01:00
parent 6897b44aec
commit 1651ff95f7
4 changed files with 31 additions and 25 deletions

View File

@@ -83,9 +83,9 @@ class RightTest extends TestCase
public function testLayer(): void
{
foreach (LayerType::getChoices() as $key => $value) {
$this->assertNull($this->right->setLayer($key));
$this->assertEquals($key, $this->right->getLayer());
foreach (LayerType::getChoices() as $choice) {
$this->assertNull($this->right->setLayer($choice));
$this->assertEquals($choice, $this->right->getLayer());
}
$this->expectException(NoValidChoiceException::class);
$this->right->setLayer('NoneValidLayer');