From 01c6f2d8f847dd3c1ee371f414c101f488a35662 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sat, 29 Dec 2018 23:27:45 +0100 Subject: [PATCH] Implemented RightAttributTest --- .../Entity/Attribut/RightAttributTest.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 application/tests/Unit/Entity/Attribut/RightAttributTest.php diff --git a/application/tests/Unit/Entity/Attribut/RightAttributTest.php b/application/tests/Unit/Entity/Attribut/RightAttributTest.php new file mode 100644 index 0000000..ac9061f --- /dev/null +++ b/application/tests/Unit/Entity/Attribut/RightAttributTest.php @@ -0,0 +1,30 @@ +rightAttribut = new class() implements RightAttributInterface { + use RightAttribut; + }; + } + + public function testAccessors(): void + { + $right = $this->createMock(RightInterface::class); + $this->assertNull($this->rightAttribut->setRight($right)); + $this->assertEquals($right, $this->rightAttribut->getRight()); + } +}