Skip to content
Permalink
Browse files

Fix coding standards issues.

  • Loading branch information...
markstory committed Feb 11, 2014
1 parent 01d196f commit ff740501fec27328b093cfca4165fe58da1ea34a
Showing with 8 additions and 7 deletions.
  1. +8 −7 tests/TestCase/Validation/ValidatorTest.php
@@ -488,24 +488,25 @@ public function testCount() {
$this->assertCount(2, $validator);
}
/**
* Tests adding rules via alternative syntax
*
* @return void
*/
public function testMulitple() {
public function testAddMulitple() {
$validator = new Validator;
$validator->add('title', [
'notEmpty' => [
'rule' => 'notEmpty'],
'rule' => 'notEmpty'
],
'length' => [
'rule' => [
'minLength',
10],
'message' => 'Titles need to be at least 10 characters long',]]);
'rule' => ['minLength', 10],
'message' => 'Titles need to be at least 10 characters long'
]
]);
$set = $validator->field('title');
$this->assertInstanceOf('\Cake\Validation\ValidationSet', $set);
$this->assertCount(2, $set);
}
}

0 comments on commit ff74050

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