Skip to content

Commit 8ba3c40

Browse files
ShradddhaShradddha
authored andcommitted
AC-12092:: Remove Deprecations- PhpUnit10 Unit Tests
1 parent b9b96ae commit 8ba3c40

File tree

44 files changed

+88
-88
lines changed

Some content is hidden

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

44 files changed

+88
-88
lines changed

app/code/Magento/BundleImportExport/Test/Unit/Model/Import/Product/Type/BundleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public function testSaveData(array $skus, array $bunch, bool $allowImport): void
321321
*
322322
* @return array
323323
*/
324-
public function saveDataProvider(): array
324+
public static function saveDataProvider(): array
325325
{
326326
return [
327327
[

app/code/Magento/Customer/Test/Unit/Model/Plugin/SaveCustomerGroupExcludedWebsiteTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private function getAllWebsites(): void
225225
*
226226
* @return array[]
227227
*/
228-
public function dataProviderNoExcludedWebsitesChanged(): array
228+
public static function dataProviderNoExcludedWebsitesChanged(): array
229229
{
230230
return [
231231
[
@@ -260,7 +260,7 @@ public function dataProviderNoExcludedWebsitesChanged(): array
260260
*
261261
* @return array[]
262262
*/
263-
public function dataProviderExcludedWebsitesChanged(): array
263+
public static function dataProviderExcludedWebsitesChanged(): array
264264
{
265265
return [
266266
[

app/code/Magento/Customer/Test/Unit/Model/ResourceModel/Address/RelationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function testProcessRelation($addressId, $isDefaultBilling, $isDefaultShi
143143
*
144144
* @return array
145145
*/
146-
public function getRelationDataProvider()
146+
public static function getRelationDataProvider()
147147
{
148148
return [
149149
[null, true, true],

app/code/Magento/Customer/Test/Unit/Model/ResourceModel/AddressTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function testSave($addressId, $isDefaultBilling, $isDefaultShipping)
120120
*
121121
* @return array
122122
*/
123-
public function getSaveDataProvider()
123+
public static function getSaveDataProvider()
124124
{
125125
return [
126126
[null, true, true],

app/code/Magento/Customer/Test/Unit/Model/SetCustomerStoreTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testSetStore($requestData)
8585
*
8686
* @return array
8787
*/
88-
public function requestParamsDataProvider(): array
88+
public static function requestParamsDataProvider(): array
8989
{
9090
return [
9191
[[]],

app/code/Magento/Customer/Test/Unit/Model/Validator/CityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testValidateCorrectPunctuationInNames(
6161
/**
6262
* @return array
6363
*/
64-
public function expectedPunctuationInNamesDataProvider(): array
64+
public static function expectedPunctuationInNamesDataProvider(): array
6565
{
6666
return [
6767
[

app/code/Magento/Customer/Test/Unit/Model/Validator/NameTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testValidateCorrectPunctuationInNames(
6767
/**
6868
* @return array
6969
*/
70-
public function expectedPunctuationInNamesDataProvider(): array
70+
public static function expectedPunctuationInNamesDataProvider(): array
7171
{
7272
return [
7373
[

app/code/Magento/Customer/Test/Unit/Model/Validator/StreetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testValidateCorrectPunctuationInNames(
6161
/**
6262
* @return array
6363
*/
64-
public function expectedPunctuationInNamesDataProvider(): array
64+
public static function expectedPunctuationInNamesDataProvider(): array
6565
{
6666
return [
6767
[

app/code/Magento/Customer/Test/Unit/Model/Validator/TelephoneTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testValidateCorrectPunctuationInNames(
6161
/**
6262
* @return array
6363
*/
64-
public function expectedPunctuationInNamesDataProvider(): array
64+
public static function expectedPunctuationInNamesDataProvider(): array
6565
{
6666
return [
6767
[

app/code/Magento/Customer/Test/Unit/Plugin/AsyncRequestCustomerGroupAuthorizationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function testBeforePublishMass(
102102
/**
103103
* @return array
104104
*/
105-
public function customerDataProvider(): array
105+
public static function customerDataProvider(): array
106106
{
107107
return [
108108
[3, 1, false, 1],

0 commit comments

Comments
 (0)