Skip to content
Permalink
Browse files

Remove test that is no longer needed for validation.

  • Loading branch information...
markstory committed Jul 18, 2012
1 parent 83cef3e commit 7979ee5fa0aa5760aad6443d3a6a9529a2169408
Showing with 0 additions and 19 deletions.
  1. +0 −19 lib/Cake/Test/Case/Model/ModelValidationTest.php
@@ -713,25 +713,6 @@ public function testMissingValidationErrorTriggering() {
$TestModel->invalidFields(array('fieldList' => array('title')));
}
/**
* Test that missing validation methods does not trigger errors in production mode.
*
* @return void
*/
public function testMissingValidationErrorNoTriggering() {
Configure::write('debug', 0);
$TestModel = new ValidationTest1();
$TestModel->create(array('title' => 'foo'));
$TestModel->validate = array(
'title' => array(
'rule' => array('thisOneBringsThePain'),
'required' => true
)
);
$TestModel->invalidFields(array('fieldList' => array('title')));
$this->assertEquals(array(), $TestModel->validationErrors);
}
/**
* Test placeholder replacement when validation message is an array
*

0 comments on commit 7979ee5

Please sign in to comment.
You can’t perform that action at this time.