Browse Source

Fix coding standards issues.

mark_story 12 years ago
parent
commit
ff740501fe
1 changed files with 8 additions and 7 deletions
  1. 8 7
      tests/TestCase/Validation/ValidatorTest.php

+ 8 - 7
tests/TestCase/Validation/ValidatorTest.php

@@ -488,24 +488,25 @@ class ValidatorTest extends \Cake\TestSuite\TestCase {
 		$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);
 	}
+
 }