Browse Source

Correct more docs and add an assertion.

Mark Story 11 years ago
parent
commit
9da7e9d446
2 changed files with 2 additions and 1 deletions
  1. 1 1
      src/ORM/Table.php
  2. 1 0
      tests/TestCase/ORM/RulesCheckerIntegrationTest.php

+ 1 - 1
src/ORM/Table.php

@@ -1929,7 +1929,7 @@ class Table implements RepositoryInterface, EventListenerInterface {
 	}
 
 /**
- * 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.
  *

+ 1 - 0
tests/TestCase/ORM/RulesCheckerIntegrationTest.php

@@ -71,6 +71,7 @@ class RulesCheckerIntegrationTest extends TestCase {
 		$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'));
 	}
 
 /**