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()
|
||||
{
|
||||
return [
|
||||
[
|
||||
'oneParameterOneItem' => [
|
||||
[
|
||||
['FirstName' => 'Ingo'],
|
||||
],
|
||||
self::$oneItemList,
|
||||
],
|
||||
[
|
||||
'twoParametersOneItem' => [
|
||||
[
|
||||
['FirstName' => 'Ingo', 'Surname' => 'Schommer'],
|
||||
],
|
||||
self::$oneItemList,
|
||||
],
|
||||
[
|
||||
'oneParameterTwoItems' => [
|
||||
[
|
||||
['FirstName' => 'Ingo'],
|
||||
['FirstName' => 'Sam'],
|
||||
],
|
||||
self::$twoItemList,
|
||||
],
|
||||
[
|
||||
'twoParametersTwoItems' => [
|
||||
[
|
||||
['FirstName' => 'Ingo', 'Surname' => 'Schommer'],
|
||||
['FirstName' => 'Sam', 'Surname' => 'Minnee'],
|
||||
],
|
||||
self::$twoItemList,
|
||||
],
|
||||
[
|
||||
'mixedParametersTwoItems' => [
|
||||
[
|
||||
['FirstName' => 'Ingo', 'Surname' => 'Schommer'],
|
||||
['FirstName' => 'Sam'],
|
||||
],
|
||||
@ -85,34 +85,34 @@ class DataProvider implements TestOnly
|
||||
{
|
||||
|
||||
return [
|
||||
[
|
||||
'checkAgainstEmptyList' => [
|
||||
[
|
||||
['FirstName' => 'Ingo'],
|
||||
],
|
||||
[],
|
||||
],
|
||||
[
|
||||
'oneItemExpectedListContainsMore' => [
|
||||
[
|
||||
['FirstName' => 'Ingo'],
|
||||
],
|
||||
self::$twoItemList,
|
||||
],
|
||||
[
|
||||
'oneExpectationHasWrontParamter' => [
|
||||
[
|
||||
['FirstName' => 'IngoXX'],
|
||||
['FirstName' => 'Sam'],
|
||||
],
|
||||
self::$twoItemList,
|
||||
],
|
||||
[
|
||||
'differentParametersInDifferentItemsAreWrong' => [
|
||||
[
|
||||
['FirstName' => 'IngoXXX', 'Surname' => 'Schommer'],
|
||||
['FirstName' => 'Sam', 'Surname' => 'MinneeXXX'],
|
||||
],
|
||||
self::$twoItemList,
|
||||
],
|
||||
[
|
||||
'differentParametersNotMatching' => [
|
||||
[
|
||||
['FirstName' => 'Daniel', 'Surname' => 'Foo'],
|
||||
['FirstName' => 'Dan'],
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user