FIX: Fix test mistakenly labelling content as name arguments in data provider

This commit is contained in:
Sam Minnee 2020-08-30 16:39:12 +12:00 committed by Garion Herman
parent b3dd27953b
commit 57bdef3b2e

View File

@ -42,34 +42,34 @@ class DataProvider implements TestOnly
public static function provideEqualLists() public static function provideEqualLists()
{ {
return [ return [
[
'oneParameterOneItem' => [ 'oneParameterOneItem' => [
[
['FirstName' => 'Ingo'], ['FirstName' => 'Ingo'],
], ],
self::$oneItemList, self::$oneItemList,
], ],
[
'twoParametersOneItem' => [ 'twoParametersOneItem' => [
[
['FirstName' => 'Ingo', 'Surname' => 'Schommer'], ['FirstName' => 'Ingo', 'Surname' => 'Schommer'],
], ],
self::$oneItemList, self::$oneItemList,
], ],
[
'oneParameterTwoItems' => [ 'oneParameterTwoItems' => [
[
['FirstName' => 'Ingo'], ['FirstName' => 'Ingo'],
['FirstName' => 'Sam'], ['FirstName' => 'Sam'],
], ],
self::$twoItemList, self::$twoItemList,
], ],
[
'twoParametersTwoItems' => [ 'twoParametersTwoItems' => [
[
['FirstName' => 'Ingo', 'Surname' => 'Schommer'], ['FirstName' => 'Ingo', 'Surname' => 'Schommer'],
['FirstName' => 'Sam', 'Surname' => 'Minnee'], ['FirstName' => 'Sam', 'Surname' => 'Minnee'],
], ],
self::$twoItemList, self::$twoItemList,
], ],
[
'mixedParametersTwoItems' => [ 'mixedParametersTwoItems' => [
[
['FirstName' => 'Ingo', 'Surname' => 'Schommer'], ['FirstName' => 'Ingo', 'Surname' => 'Schommer'],
['FirstName' => 'Sam'], ['FirstName' => 'Sam'],
], ],
@ -85,34 +85,34 @@ class DataProvider implements TestOnly
{ {
return [ return [
[
'checkAgainstEmptyList' => [ 'checkAgainstEmptyList' => [
[
['FirstName' => 'Ingo'], ['FirstName' => 'Ingo'],
], ],
[], [],
], ],
[
'oneItemExpectedListContainsMore' => [ 'oneItemExpectedListContainsMore' => [
[
['FirstName' => 'Ingo'], ['FirstName' => 'Ingo'],
], ],
self::$twoItemList, self::$twoItemList,
], ],
[
'oneExpectationHasWrontParamter' => [ 'oneExpectationHasWrontParamter' => [
[
['FirstName' => 'IngoXX'], ['FirstName' => 'IngoXX'],
['FirstName' => 'Sam'], ['FirstName' => 'Sam'],
], ],
self::$twoItemList, self::$twoItemList,
], ],
[
'differentParametersInDifferentItemsAreWrong' => [ 'differentParametersInDifferentItemsAreWrong' => [
[
['FirstName' => 'IngoXXX', 'Surname' => 'Schommer'], ['FirstName' => 'IngoXXX', 'Surname' => 'Schommer'],
['FirstName' => 'Sam', 'Surname' => 'MinneeXXX'], ['FirstName' => 'Sam', 'Surname' => 'MinneeXXX'],
], ],
self::$twoItemList, self::$twoItemList,
], ],
[
'differentParametersNotMatching' => [ 'differentParametersNotMatching' => [
[
['FirstName' => 'Daniel', 'Surname' => 'Foo'], ['FirstName' => 'Daniel', 'Surname' => 'Foo'],
['FirstName' => 'Dan'], ['FirstName' => 'Dan'],
], ],