mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 17:29:04 +00:00 
			
		
		
		
	Updated registration process
This commit is contained in:
		| @@ -1,4 +1,5 @@ | ||||
| <?php | ||||
|  | ||||
| namespace tests\unit\Entity; | ||||
|  | ||||
| use PHPUnit\Framework\TestCase; | ||||
| @@ -8,18 +9,15 @@ use App\Entity\UserSource; | ||||
| use App\Entity\Node; | ||||
|  | ||||
| /** | ||||
|  * | ||||
|  * @author kevinfrantz | ||||
|  */ | ||||
| class UserTest extends TestCase | ||||
| { | ||||
|  | ||||
|     const PASSWORD = '12345678'; | ||||
|  | ||||
|     const USERNAME = 'tester'; | ||||
|  | ||||
|     /** | ||||
|      * | ||||
|      * @var User | ||||
|      */ | ||||
|     protected $user; | ||||
| @@ -40,19 +38,19 @@ class UserTest extends TestCase | ||||
|         $this->user->setPassword(self::PASSWORD); | ||||
|         $this->assertEquals(self::PASSWORD, $this->user->getPassword()); | ||||
|     } | ||||
|      | ||||
|  | ||||
|     public function testSource(): void | ||||
|     { | ||||
|         $this->assertInstanceOf(UserSource::class,$this->user->getSource()); | ||||
|         $this->assertInstanceOf(UserSource::class, $this->user->getSource()); | ||||
|     } | ||||
|      | ||||
|  | ||||
|     public function testNode(): void | ||||
|     { | ||||
|         $this->assertInstanceOf(Node::class,$this->user->getSource()->getNode()); | ||||
|         $this->assertInstanceOf(Node::class, $this->user->getSource()->getNode()); | ||||
|     } | ||||
|  | ||||
|     public function testLaw(): void | ||||
|     { | ||||
|         $this->assertInstanceOf(Law::class,$this->user->getSource()->getNode()->getLaw()); | ||||
|         $this->assertInstanceOf(Law::class, $this->user->getSource()->getNode()->getLaw()); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user