Extends
lithium\test\UnitSource
public function testValidatesCustomEventsValid() {
$post = MockPostForValidates::create(array(
'title' => 'new post', 'email' => 'something@test.com'
));
$events = array('custom_event','another_custom_event');
$result = $post->validates(compact('events'));
$this->assertTrue($result === true);
$result = $post->errors();
$this->assertTrue(empty($result));
}