Skip to content

Commit

Permalink
Fix coding standards issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 11, 2014
1 parent 01d196f commit ff74050
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/TestCase/Validation/ValidatorTest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -488,24 +488,25 @@ public function testCount() {
$this->assertCount(2, $validator); $this->assertCount(2, $validator);
} }



/** /**
* Tests adding rules via alternative syntax * Tests adding rules via alternative syntax
* *
* @return void * @return void
*/ */
public function testMulitple() { public function testAddMulitple() {
$validator = new Validator; $validator = new Validator;
$validator->add('title', [ $validator->add('title', [
'notEmpty' => [ 'notEmpty' => [
'rule' => 'notEmpty'], 'rule' => 'notEmpty'
],
'length' => [ 'length' => [
'rule' => [ 'rule' => ['minLength', 10],
'minLength', 'message' => 'Titles need to be at least 10 characters long'
10], ]
'message' => 'Titles need to be at least 10 characters long',]]); ]);
$set = $validator->field('title'); $set = $validator->field('title');
$this->assertInstanceOf('\Cake\Validation\ValidationSet', $set); $this->assertInstanceOf('\Cake\Validation\ValidationSet', $set);
$this->assertCount(2, $set); $this->assertCount(2, $set);
} }

} }

0 comments on commit ff74050

Please sign in to comment.