コード例 #1
0
 public function test_modified_attributes_in_before_handlers_get_saved()
 {
     $author = DirtyAuthor::first();
     $author->encrypted_password = '******';
     $author->save();
     $this->assert_equals('i saved', DirtyAuthor::find($author->id)->name);
 }
コード例 #2
0
 public function testModifiedAttributesInBeforeHandlersGetSaved()
 {
     $author = DirtyAuthor::first();
     $author->encrypted_password = '******';
     $author->save();
     $this->assertEquals('i saved', DirtyAuthor::find($author->id)->name);
 }