Skip to content

Commit

Permalink
Fix failing tests.
Browse files Browse the repository at this point in the history
Unset properties are no longer dirty.
  • Loading branch information
markstory committed Aug 19, 2014
1 parent 63e6d38 commit 8a4fdc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/ORM/TableTest.php
Expand Up @@ -2493,7 +2493,7 @@ public function testSaveHasOneWithValidationError() {
$this->assertTrue($entity->article->isNew());
$this->assertNull($entity->article->id);
$this->assertNull($entity->article->get('author_id'));
$this->assertTrue($entity->article->dirty('author_id'));
$this->assertFalse($entity->article->dirty('author_id'));
$this->assertNotEmpty($entity->article->errors('title'));
}

Expand Down Expand Up @@ -2637,7 +2637,7 @@ public function testSaveHasOneWithValidationErrorNonAtomic() {
$this->assertTrue($entity->article->isNew());
$this->assertNull($entity->article->id);
$this->assertNull($entity->article->get('author_id'));
$this->assertTrue($entity->article->dirty('author_id'));
$this->assertFalse($entity->article->dirty('author_id'));
$this->assertNotEmpty($entity->article->errors('title'));
}

Expand Down

0 comments on commit 8a4fdc4

Please sign in to comment.