Skip to content

Commit 647a9c3

Browse files
ShradddhaShradddha
authored andcommitted
Add static in dataprovider methods for unit test
1 parent 375f352 commit 647a9c3

File tree

69 files changed

+95
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+95
-95
lines changed

app/code/Magento/AdminAnalytics/Test/Unit/Condition/CanViewNotificationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testIsVisibleLoadDataFromLog($expected, $cacheResponse, $logExis
7575
/**
7676
* @return array
7777
*/
78-
public function isVisibleProvider()
78+
public static function isVisibleProvider()
7979
{
8080
return [
8181
[true, false, false],

app/code/Magento/AdminNotification/Test/Unit/Model/System/Message/Media/Synchronization/ErrorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function testIsDisplayed($expectedFirstRun, $data)
8282
/**
8383
* @return array
8484
*/
85-
public function isDisplayedDataProvider()
85+
public static function isDisplayedDataProvider()
8686
{
8787
return [
8888
[true, ['has_errors' => 1]],

app/code/Magento/AdminNotification/Test/Unit/Model/System/Message/SecurityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testIsDisplayed($expectedResult, $cached, $response)
8585
/**
8686
* @return array
8787
*/
88-
public function isDisplayedDataProvider()
88+
public static function isDisplayedDataProvider()
8989
{
9090
return [
9191
'cached_case' => [false, true, ''],

app/code/Magento/AdvancedSearch/Test/Unit/Model/Indexer/Fulltext/Plugin/CustomerGroupTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function testAroundSave(
118118
*
119119
* @return array
120120
*/
121-
public function aroundSaveDataProvider(): array
121+
public static function aroundSaveDataProvider(): array
122122
{
123123
return [
124124
[false, false, 0],

app/code/Magento/AdvancedSearch/Test/Unit/Model/ResourceModel/IndexTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function testGetPriceIndexData(array $testData): void
155155
/**
156156
* @return array
157157
*/
158-
public function providerForTestPriceIndexData(): array
158+
public static function providerForTestPriceIndexData(): array
159159
{
160160
return [
161161
[

app/code/Magento/Analytics/Test/Unit/Controller/Adminhtml/Reports/ShowTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function testExecuteWithException(\Exception $exception)
141141
/**
142142
* @return array
143143
*/
144-
public function executeWithExceptionDataProvider()
144+
public static function executeWithExceptionDataProvider()
145145
{
146146
return [
147147
'ExecuteWithLocalizedException' => [new LocalizedException(__('TestMessage'))],

app/code/Magento/Analytics/Test/Unit/Controller/Adminhtml/Subscription/RetryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function testExecuteWithException(\Exception $exception, Phrase $message)
138138
/**
139139
* @return array
140140
*/
141-
public function executeExceptionsDataProvider()
141+
public static function executeExceptionsDataProvider()
142142
{
143143
return [
144144
[new LocalizedException(__('TestMessage')), __('TestMessage')],

app/code/Magento/Analytics/Test/Unit/Cron/CollectDataTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testExecute($status)
8080
/**
8181
* @return array
8282
*/
83-
public function executeDataProvider()
83+
public static function executeDataProvider()
8484
{
8585
return [
8686
'Subscription is enabled' => [SubscriptionStatusProvider::ENABLED],

app/code/Magento/Analytics/Test/Unit/Model/Config/MapperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testExecution($configData, $resultData)
5151
/**
5252
* @return array
5353
*/
54-
public function executingDataProvider()
54+
public static function executingDataProvider()
5555
{
5656
return [
5757
'wrongConfig' => [

app/code/Magento/Analytics/Test/Unit/Model/Connector/Http/Client/CurlTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected function setUp(): void
8888
*
8989
* @return array
9090
*/
91-
public function getTestData()
91+
public static function getTestData()
9292
{
9393
return [
9494
[

0 commit comments

Comments
 (0)