Skip to content
This repository
Browse code

Remove test that is no longer needed for validation.

  • Loading branch information...
commit 7979ee5fa0aa5760aad6443d3a6a9529a2169408 1 parent 83cef3e
Mark Story authored July 17, 2012
19  lib/Cake/Test/Case/Model/ModelValidationTest.php
@@ -714,25 +714,6 @@ public function testMissingValidationErrorTriggering() {
714 714
 	}
715 715
 
716 716
 /**
717  
- * Test that missing validation methods does not trigger errors in production mode.
718  
- *
719  
- * @return void
720  
- */
721  
-	public function testMissingValidationErrorNoTriggering() {
722  
-		Configure::write('debug', 0);
723  
-		$TestModel = new ValidationTest1();
724  
-		$TestModel->create(array('title' => 'foo'));
725  
-		$TestModel->validate = array(
726  
-			'title' => array(
727  
-				'rule' => array('thisOneBringsThePain'),
728  
-				'required' => true
729  
-			)
730  
-		);
731  
-		$TestModel->invalidFields(array('fieldList' => array('title')));
732  
-		$this->assertEquals(array(), $TestModel->validationErrors);
733  
-	}
734  
-
735  
-/**
736 717
  * Test placeholder replacement when validation message is an array
737 718
  *
738 719
  * @return void

0 notes on commit 7979ee5

Please sign in to comment.
Something went wrong with that request. Please try again.