mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 09:19:08 +00:00 
			
		
		
		
	Implemented RightAttributTest
This commit is contained in:
		
							
								
								
									
										30
									
								
								application/tests/Unit/Entity/Attribut/RightAttributTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								application/tests/Unit/Entity/Attribut/RightAttributTest.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Tests\Unit\Entity\Attribut; | ||||
|  | ||||
| use PHPUnit\Framework\TestCase; | ||||
| use App\Entity\Attribut\RightAttributInterface; | ||||
| use App\Entity\Attribut\RightAttribut; | ||||
| use App\Entity\Meta\RightInterface; | ||||
|  | ||||
| class RightAttributTest extends TestCase | ||||
| { | ||||
|     /*** | ||||
|      * @var RightAttributInterface | ||||
|      */ | ||||
|     private $rightAttribut; | ||||
|  | ||||
|     public function setUp(): void | ||||
|     { | ||||
|         $this->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()); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user