Browse Source

Remove test that is no longer needed for validation.

mark_story 13 years ago
parent
commit
7979ee5fa0
1 changed files with 0 additions and 19 deletions
  1. 0 19
      lib/Cake/Test/Case/Model/ModelValidationTest.php

+ 0 - 19
lib/Cake/Test/Case/Model/ModelValidationTest.php

@@ -714,25 +714,6 @@ class ModelValidationTest extends BaseModelTest {
 	}
 
 /**
- * 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
  *
  * @return void