Skip to content
Permalink
Browse files

fix malformed dataproviders

  • Loading branch information...
antograssiot committed Jul 25, 2016
1 parent ac06672 commit ad124a3260641e0c0f129544cc92df83d4a03105
@@ -94,7 +94,8 @@ public function testSettingCookie()
public static function safeHttpMethodProvider()
{
return [
['GET', 'HEAD']
['GET'],
['HEAD'],
];
}
@@ -342,7 +342,7 @@ public function testAddConstraintOverwriteUniqueIndex()
*
* @return array
*/
public static function addConstaintErrorProvider()
public static function addConstraintErrorProvider()
{
return [
// No properties
@@ -361,7 +361,7 @@ public static function addConstaintErrorProvider()
* 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
*/
@@ -351,7 +351,7 @@ public function testBelongsToEager($strategy)
}
/**
* Tests loding hasOne with composite keys
* Tests loading hasOne with composite keys
*
* @dataProvider strategiesProviderHasOne
* @return void
@@ -1373,7 +1373,7 @@ public function emptyNamesProvider()
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 @@ public function testEmptyProperties($property)
}
/**
* Tests that setitng an empty property name does nothing
* Tests that setting an empty property name does nothing
*
* @expectedException \InvalidArgumentException
* @dataProvider emptyNamesProvider
@@ -234,7 +234,10 @@ public function testReciprocalBelongsToManyNoOverwrite()
*/
public function strategyProvider()
{
return [['append', 'replace']];
return [
['append'],
['replace'],
];
}
/**

0 comments on commit ad124a3

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