/** * Tests creating new users. */ public function testCreateUser() { $username = "******"; $password = "******"; $user = new User($username, $password); // Make sure that the new user isn't an admin. $this->assertEquals(false, $user->isAdmin()); $this->assertEquals($username, $user->getUsername()); $this->assertEquals(true, $user->comparePassword($password)); }