From 233d8b3c0ed2700b85cb3b636161c3f9feb4136e Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sat, 14 Jul 2018 10:54:57 +0200 Subject: [PATCH] Added tests for user --- src/entity/user/User.php | 33 +++++++++++++++++++++++++++ src/entity/user/UserTest.php | 44 ++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 src/entity/user/User.php create mode 100644 src/entity/user/UserTest.php diff --git a/src/entity/user/User.php b/src/entity/user/User.php new file mode 100644 index 0000000..257344a --- /dev/null +++ b/src/entity/user/User.php @@ -0,0 +1,33 @@ +user = new User(); + $this->user->setName(self::NAME); + $this->user->setEmail(self::EMAIL); + $this->user->setPasswordHash(self::HASH); + } + + public function testName():void{ + $this->assertEquals(self::NAME, $this->user->getName()); + } + + public function testEmail():void{ + $this->assertEquals(self::EMAIL, $this->user->getEmail()); + } + + public function testHash():void{ + $this->assertEquals(self::HASH, $this->user->getPasswordHash()); + } + +} +