public function testSetAndValidatePassword() { // Create a dummy user record $user = new Dbi_Record(new Model_User(), array('userid' => '1000', 'username' => 'test', 'email' => '*****@*****.**', 'password' => 'password', 'auth' => 'Hash')); // Hash the password $event = new ModelEvent_HashPassword(); $event->update($user); // Test authentication $auth = new Auth_Hash($user); $this->assertTrue($auth->validate('password'), 'Auth_Hash failed to validate password'); }