Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simplify test.

  • Loading branch information...
commit 381a8c1216804eb0739cc069e49a3640d8e48015 1 parent 35ca406
@dereuromark dereuromark authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/Cake/Test/Case/Model/ModelValidationTest.php
View
6 lib/Cake/Test/Case/Model/ModelValidationTest.php
@@ -622,12 +622,10 @@ public function testValidateWithFieldListAndBehavior() {
$TestModel = new ValidationTest1();
$TestModel->validate = array(
'title' => array(
- 'rule' => 'alphaNumeric',
- 'required' => true
+ 'rule' => 'notEmpty',
),
'name' => array(
- 'rule' => 'alphaNumeric',
- 'required' => true
+ 'rule' => 'notEmpty',
));
$TestModel->Behaviors->attach('ValidationRule', array('fields' => array('name')));
Please sign in to comment.
Something went wrong with that request. Please try again.