Skip to content

Commit b5a570b

Browse files
committed
AC-12868-Remove Deprecations- PhpUnit10 WebApi Tests
1 parent 148c3ea commit b5a570b

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CreateCustomerAddressTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ public function testCreateCustomerAddressRegionCodeWithOutRegionIdForNoRegionReq
807807
/**
808808
* @return array
809809
*/
810-
public function invalidInputDataProvider()
810+
public static function invalidInputDataProvider()
811811
{
812812
return [
813813
['', 'Syntax Error: Expected Name, found )'],

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CreateCustomerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testCreateCustomerAccountWithPassword(string $email)
7878
/**
7979
* @return array
8080
*/
81-
public function validEmailAddressDataProvider(): array
81+
public static function validEmailAddressDataProvider(): array
8282
{
8383
return [
8484
['new_customer@example.com'],
@@ -221,7 +221,7 @@ public function testCreateCustomerIfEmailIsNotValid(string $email)
221221
/**
222222
* @return array
223223
*/
224-
public function invalidEmailAddressDataProvider(): array
224+
public static function invalidEmailAddressDataProvider(): array
225225
{
226226
return [
227227
['plainaddress'],

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CreateCustomerV2Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testCreateCustomerAccountWithPassword(string $email)
7979
/**
8080
* @return array
8181
*/
82-
public function validEmailAddressDataProvider(): array
82+
public static function validEmailAddressDataProvider(): array
8383
{
8484
return [
8585
['new_customer@example.com'],
@@ -222,7 +222,7 @@ public function testCreateCustomerIfEmailIsNotValid(string $email)
222222
/**
223223
* @return array
224224
*/
225-
public function invalidEmailAddressDataProvider(): array
225+
public static function invalidEmailAddressDataProvider(): array
226226
{
227227
return [
228228
['plainaddress'],

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/GenerateCustomerTokenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function testRegenerateCustomerToken(): void
116116
/**
117117
* @return array
118118
*/
119-
public function dataProviderInvalidCustomerInfo(): array
119+
public static function dataProviderInvalidCustomerInfo(): array
120120
{
121121
return [
122122
'invalid_email' => [

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/UpdateCustomerAddressTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public function testUpdateCustomerAddressWithInvalidInput(string $input, string
424424
/**
425425
* @return array
426426
*/
427-
public function invalidInputDataProvider()
427+
public static function invalidInputDataProvider()
428428
{
429429
return [
430430
['', '"input" value must be specified'],

dev/tests/api-functional/testsuite/Magento/GraphQl/CustomerGraphQl/Model/Resolver/CustomerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public function testCustomerQueryingCustomerWithDifferentStoreHeaderDoesNotGener
618618
);
619619
}
620620

621-
public function invalidationMechanismProvider(): array
621+
public static function invalidationMechanismProvider(): array
622622
{
623623
// provider is invoked before setUp() is called so need to init here
624624
$repo = Bootstrap::getObjectManager()->get(

0 commit comments

Comments
 (0)