Skip to content

Commit 0e31b83

Browse files
committed
AC-11917: PHPUnit 10 deprecation fixes
1 parent 6cee2ac commit 0e31b83

21 files changed

+23
-23
lines changed

dev/tests/Unit/ClassHierarchy/EntityTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public function testIsTrait(string $type, bool $expected)
488488
*
489489
* @return array
490490
*/
491-
public function dataProviderIsClass()
491+
public static function dataProviderIsClass()
492492
{
493493
return [
494494
'entity-is-class-returns-true' => [
@@ -511,7 +511,7 @@ public function dataProviderIsClass()
511511
*
512512
* @return array
513513
*/
514-
public function dataProviderIsInterface()
514+
public static function dataProviderIsInterface()
515515
{
516516
return [
517517
'entity-is-class-returns-false' => [
@@ -534,7 +534,7 @@ public function dataProviderIsInterface()
534534
*
535535
* @return array
536536
*/
537-
public function dataProviderIsTrait()
537+
public static function dataProviderIsTrait()
538538
{
539539
return [
540540
'entity-is-class-returns-false' => [

dev/tests/Unit/Console/Command/CompareSourceCommandApiClassesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testExecute(
4242
);
4343
}
4444

45-
public function changesDataProvider()
45+
public static function changesDataProvider()
4646
{
4747
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/api-class';
4848
return [

dev/tests/Unit/Console/Command/CompareSourceCommandApiInterfacesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testExecute(
4242
);
4343
}
4444

45-
public function changesDataProvider()
45+
public static function changesDataProvider()
4646
{
4747
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/api-interface';
4848
return [

dev/tests/Unit/Console/Command/CompareSourceCommandApiTraitsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testExecute(
4444
);
4545
}
4646

47-
public function changesDataProvider()
47+
public static function changesDataProvider()
4848
{
4949
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/api-trait';
5050

dev/tests/Unit/Console/Command/CompareSourceCommandDatabaseSchemasTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testExecute(
4848
/**
4949
* @return array
5050
*/
51-
public function changesDataProvider()
51+
public static function changesDataProvider()
5252
{
5353
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/db_schema';
5454
return [

dev/tests/Unit/Console/Command/CompareSourceCommandDiXmlTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testExecute(
4242
);
4343
}
4444

45-
public function changesDataProvider()
45+
public static function changesDataProvider()
4646
{
4747
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/di_xml';
4848

dev/tests/Unit/Console/Command/CompareSourceCommandLayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testExecute(
4242
);
4343
}
4444

45-
public function changesDataProvider()
45+
public static function changesDataProvider()
4646
{
4747
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/layout_xml';
4848
getcwd();

dev/tests/Unit/Console/Command/CompareSourceCommandLessTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testExecute(
4242
);
4343
}
4444

45-
public function changesDataProvider()
45+
public static function changesDataProvider()
4646
{
4747
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/less';
4848

dev/tests/Unit/Console/Command/CompareSourceCommandMftfTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function executeCommand($pathToSourceCodeBefore, $pathToSourceCodeAfte
8080
return $commandTester;
8181
}
8282

83-
public function changesDataProvider()
83+
public static function changesDataProvider()
8484
{
8585
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/mftf';
8686
return [

dev/tests/Unit/Console/Command/CompareSourceCommandNonApiClassesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testExecute(
4242
);
4343
}
4444

45-
public function changesDataProvider()
45+
public static function changesDataProvider()
4646
{
4747
$pathToFixtures = __DIR__ . '/CompareSourceCommandTest/_files/non-api-class';
4848
return [

0 commit comments

Comments
 (0)