Skip to content

Commit edb69fe

Browse files
committed
MAGE-1363 Make data provider methods static
1 parent 2235b8c commit edb69fe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Test/Unit/Controller/Adminhtml/IndexingManager/ReindexTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function testEntityToIndex($params, $result)
185185
$this->assertEquals($result, $this->reindexController->defineEntitiesToIndex($params));
186186
}
187187

188-
public function entityParamsProvider()
188+
public static function entityParamsProvider(): array
189189
{
190190
return [
191191
[
@@ -219,7 +219,7 @@ public function testRedirectPath($params, $result)
219219
$this->assertEquals($result, $this->reindexController->defineRedirectPath($params));
220220
}
221221

222-
public function redirectParamsProvider()
222+
public static function redirectParamsProvider(): array
223223
{
224224
return [
225225
[

Test/Unit/Model/Backend/QueueCronTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testInput($value, $isValid): void
5252
}
5353
}
5454

55-
public function valuesProvider(): array
55+
public static function valuesProvider(): array
5656
{
5757
return [
5858
[

Test/Unit/Service/EventProcessorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testObjectDataForPurchase($priceIncludesTax, $orderItemsData, $e
6868
$this->assertEquals($expectedTotalRevenue, $totalRevenue);
6969
}
7070

71-
public function orderItemsProvider(): array
71+
public static function orderItemsProvider(): array
7272
{
7373
return [
7474
[ // One item

0 commit comments

Comments
 (0)