Skip to content

Commit

Permalink
Remove test that is no longer needed for validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 18, 2012
1 parent 83cef3e commit 7979ee5
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions lib/Cake/Test/Case/Model/ModelValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 7979ee5

Please sign in to comment.