Extends
lithium\test\UnitSource
public function testValidatesTitle() {
$post = MockPostForValidates::create(array('title' => 'new post'));
$result = $post->validates();
$this->assertTrue($result === false);
$result = $post->errors();
$this->assertTrue(!empty($result));
$expected = array(
'email' => array('email is empty', 'email is not valid')
);
$result = $post->errors();
$this->assertEqual($expected, $result);
}