芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/yii/demos/blog/protected/tests/unit/UserTest.php
'User', ); public function testValidatePassword() { $this->assertTrue($this->users(0)->validatePassword('demo')); $this->assertFalse($this->users(0)->validatePassword('wrong')); } public function testChangePassword() { $user=$this->users(0); $user->password=$user->hashPassword('newpwd'); $this->assertFalse($user->validatePassword('demo')); $this->assertTrue($user->validatePassword('newpwd')); } }