mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Fix test mistakenly labelling content as name arguments in data provider
This commit is contained in:
parent
b3dd27953b
commit
57bdef3b2e
@ -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'],
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user