Code Duplication    Length = 9-10 lines in 2 locations

dev/tests/Win/Authentication/UserDAOTest.php 1 location

@@ 72-80 (lines=9) @@
69
		$this->assertNotEquals($lastLogin, $this->user->getLastLogin());
70
	}
71
72
	public function testUpdatePassword() {
73
		$this->insertExample();
74
		$oldPasswordHash = $this->user->getPasswordHash();
75
		$this->dao->updatePassword($this->user, 'my-newpass', 'my-newpass');
76
		$this->assertNotEquals($this->user->getPasswordHash(), $oldPasswordHash);
77
78
		$lastUser = $this->dao->fetchById($this->user->getId());
79
		$this->assertEquals($lastUser->getPasswordHash(), $this->user->getPasswordHash());
80
	}
81
82
}
83

dev/tests/Win/DAO/DAOTest.php 1 location

@@ 68-77 (lines=10) @@
65
		$this->assertEquals($this->user->getName(), $lastUser->getName());
66
	}
67
68
	public function testUpdate() {
69
		$this->insertExample();
70
71
		$this->user->setName('Name Updated');
72
		$error = $this->dao->save($this->user);
73
		$this->assertNull($error);
74
75
		$lastUser = $this->dao->fetchById($this->user->getId());
76
		$this->assertEquals($this->user->getId(), $lastUser->getId());
77
	}
78
79
	public function testDelete() {
80
		$this->insertExample();