Browse Source

fix malformed dataproviders

antograssiot 9 years ago
parent
commit
ad124a3260

+ 2 - 1
tests/TestCase/Controller/Component/CsrfComponentTest.php

@@ -94,7 +94,8 @@ class CsrfComponentTest extends TestCase
     public static function safeHttpMethodProvider()
     {
         return [
-            ['GET', 'HEAD']
+            ['GET'],
+            ['HEAD'],
         ];
     }
 

+ 2 - 2
tests/TestCase/Database/Schema/TableTest.php

@@ -342,7 +342,7 @@ class TableTest extends TestCase
      *
      * @return array
      */
-    public static function addConstaintErrorProvider()
+    public static function addConstraintErrorProvider()
     {
         return [
             // No properties
@@ -361,7 +361,7 @@ class TableTest extends TestCase
      * Test that an exception is raised when constraints
      * are added for fields that do not exist.
      *
-     * @dataProvider addConstaintErrorProvider
+     * @dataProvider addConstraintErrorProvider
      * @expectedException \Cake\Database\Exception
      * @return void
      */

+ 1 - 1
tests/TestCase/ORM/CompositeKeysTest.php

@@ -351,7 +351,7 @@ class CompositeKeyTest extends TestCase
     }
 
     /**
-     * Tests loding hasOne with composite keys
+     * Tests loading hasOne with composite keys
      *
      * @dataProvider strategiesProviderHasOne
      * @return void

+ 2 - 2
tests/TestCase/ORM/EntityTest.php

@@ -1373,7 +1373,7 @@ class EntityTest extends TestCase
         return [[''], [null], [false]];
     }
     /**
-     * Tests that trying to get an empty propery name throws exception
+     * Tests that trying to get an empty propetry name throws exception
      *
      * @dataProvider emptyNamesProvider
      * @expectedException \InvalidArgumentException
@@ -1386,7 +1386,7 @@ class EntityTest extends TestCase
     }
 
     /**
-     * Tests that setitng an empty property name does nothing
+     * Tests that setting an empty property name does nothing
      *
      * @expectedException \InvalidArgumentException
      * @dataProvider emptyNamesProvider

+ 4 - 1
tests/TestCase/ORM/QueryRegressionTest.php

@@ -234,7 +234,10 @@ class QueryRegressionTest extends TestCase
      */
     public function strategyProvider()
     {
-        return [['append', 'replace']];
+        return [
+            ['append'],
+            ['replace'],
+        ];
     }
 
     /**