Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct more docs and add an assertion.
  • Loading branch information
markstory committed Dec 6, 2014
1 parent f5681ca commit 9da7e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Table.php
Expand Up @@ -1929,7 +1929,7 @@ public function rulesChecker() {
}

/**
* Returns rules chaker object after modifying the one that was passed. Subclasses
* Returns rules checker object after modifying the one that was passed. Subclasses
* can override this method in order to initialize the rules to be applied to
* entities saved by this table.
*
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase/ORM/RulesCheckerIntegrationTest.php
Expand Up @@ -71,6 +71,7 @@ public function testsSaveBelongsToWithValidationError() {
$this->assertTrue($entity->author->isNew());
$this->assertNull($entity->get('author_id'));
$this->assertNotEmpty($entity->author->errors('name'));
$this->assertEquals(['This is an error'], $entity->author->errors('name'));
}

/**
Expand Down

0 comments on commit 9da7e9d

Please sign in to comment.