mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 17:29:04 +00:00 
			
		
		
		
	Optimized right and reciever logic
This commit is contained in:
		| @@ -22,5 +22,7 @@ class RecieverTest extends TestCase | ||||
|     public function testConstructor(): void | ||||
|     { | ||||
|         $this->assertInstanceOf(Collection::class, $this->reciever->getMembers()); | ||||
|         $this->expectException(\TypeError::class); | ||||
|         $this->reciever->getRight(); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -7,6 +7,7 @@ use App\DBAL\Types\RightType; | ||||
| use App\Entity\Meta\RightInterface; | ||||
| use App\Entity\Meta\Right; | ||||
| use App\Entity\Meta\Law; | ||||
| use App\Entity\Meta\RecieverInterface; | ||||
|  | ||||
| /** | ||||
|  * @todo Implement reciever test | ||||
| @@ -27,8 +28,10 @@ class RightTest extends TestCase | ||||
|  | ||||
|     public function testConstructor(): void | ||||
|     { | ||||
|         $this->assertInstanceOf(RecieverInterface::class, $this->right->getReciever()); | ||||
|         $this->expectException(\TypeError::class); | ||||
|         $this->assertNull($this->right->getLaw()); | ||||
|         $this->expectException(\TypeError::class); | ||||
|         $this->assertNull($this->right->getType()); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user