euromark 11 年 前
コミット
d181ef0640

+ 2 - 2
tests/TestCase/Model/Behavior/PasswordableBehaviorTest.php

@@ -162,7 +162,7 @@ class PasswordableBehaviorTest extends TestCase {
 		$this->Users->patchEntity($user, $data);
 		$is = $this->Users->save($user);
 		$this->assertTrue((bool)$is);
-		$this->assertEquals(array('name', 'id'), $is->visibleProperties());
+		$this->assertEquals(array('name', 'created', 'modified', 'id'), $is->visibleProperties());
 
 		$id = $user->id;
 		$user = $this->Users->newEntity();
@@ -174,7 +174,7 @@ class PasswordableBehaviorTest extends TestCase {
 		$this->Users->patchEntity($user, $data);
 		$is = $this->Users->save($user);
 		$this->assertTrue((bool)$is);
-		$this->assertEquals(array('id'), $is->visibleProperties());
+		$this->assertEquals(array('id', 'modified'), $is->visibleProperties());
 	}
 
 	/**