lithium\tests\cases\data\EntityTest::testResetErrors PHP Метод

testResetErrors() публичный Метод

public testResetErrors ( )
    public function testResetErrors()
    {
        $entity = new Entity();
        $errors = array('foo' => 'Something bad happened.', 'bar' => 'Something really bad happened.');
        $entity->errors($errors);
        $this->assertEqual($errors, $entity->errors());
        $entity->errors(false);
        $this->assertEmpty($entity->errors());
    }