Extends
lithium\test\UnitSource
public function testValidatesCustomEventFalse() {
$post = MockPostForValidates::create();
$events = 'custom_event';
$result = $post->validates(compact('events'));
$this->assertTrue($result === false);
$result = $post->errors();
$this->assertTrue(!empty($result));
$expected = array(
'title' => array('please enter a title'),
'email' => array(
'email is empty',
'email is not valid',
'email is not in 1st list'
)
);
$result = $post->errors();
$this->assertEqual($expected, $result);
}