Skip to content

Commit 375f352

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

File tree

91 files changed

+152
-152
lines changed

Some content is hidden

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

91 files changed

+152
-152
lines changed

app/code/Magento/Analytics/Test/Unit/Model/Connector/OTPRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected function setUp(): void
8282
*
8383
* @return array
8484
*/
85-
private function getTestData()
85+
private static function getTestData()
8686
{
8787
return [
8888
'otp' => 'thisisotp',

app/code/Magento/Analytics/Test/Unit/Model/Connector/SignUpCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function testExecuteFailureResponseIsEmpty()
166166
*
167167
* @return array
168168
*/
169-
private function getTestData()
169+
private static function getTestData()
170170
{
171171
return [
172172
'url' => 'http://www.mystore.com',

app/code/Magento/Catalog/Test/Unit/Model/Product/Image/CacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function testGenerate()
203203
/**
204204
* @return array
205205
*/
206-
protected function getTestData()
206+
protected static function getTestData()
207207
{
208208
return [
209209
'product_image' => [

app/code/Magento/Customer/Test/Unit/Setup/RecurringDataTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function testInstall(bool $isTableExists, string $indexerState, int $coun
119119
/**
120120
* @return array
121121
*/
122-
public function installDataProvider() : array
122+
public static function installDataProvider() : array
123123
{
124124
return [
125125
[true, StateInterface::STATUS_INVALID, 1],

app/code/Magento/Fedex/Test/Unit/Model/Config/Backend/FedexUrlTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function validDataProvider(): array
117117
/**
118118
* @return \string[][]
119119
*/
120-
public function invalidDataProvider(): array
120+
public static function invalidDataProvider(): array
121121
{
122122
return [
123123
['http://fedexfoo.com'],

app/code/Magento/Paypal/Test/Unit/Model/SdkUrlTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function testGetConfig(
129129
*
130130
* @return array
131131
*/
132-
public function getConfigDataProvider()
132+
public static function getConfigDataProvider()
133133
{
134134
return include __DIR__ . '/_files/expected_url_config.php';
135135
}

app/code/Magento/Paypal/Test/Unit/Model/SmartButtonConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function testGetConfig(
124124
*
125125
* @return array
126126
*/
127-
public function getConfigDataProvider()
127+
public static function getConfigDataProvider()
128128
{
129129
return include __DIR__ . '/_files/expected_style_config.php';
130130
}

app/code/Magento/StoreGraphQl/Test/Unit/StoreValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function testValidateWithStoreActive(array $config): void
132132
*
133133
* @return array
134134
*/
135-
public function getConfigDataProvider(): array
135+
public static function getConfigDataProvider(): array
136136
{
137137
return [
138138
[

app/code/Magento/Tax/Test/Unit/Model/TaxConfigProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function testGetConfig(
129129
* @return array
130130
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
131131
*/
132-
public function getConfigDataProvider()
132+
public static function getConfigDataProvider()
133133
{
134134
return [
135135
[

app/code/Magento/Theme/Test/Unit/Controller/Result/AsyncCssPluginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function setUp(): void
6868
*
6969
* @return array
7070
*/
71-
public function renderResultDataProvider(): array
71+
public static function renderResultDataProvider(): array
7272
{
7373
return [
7474
[

0 commit comments

Comments
 (0)