Skip to content

Commit f00b928

Browse files
committed
test: Convert non-static dataprovider to static
1 parent 17b0197 commit f00b928

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Test/Unit/Util/CamelCaseConvertorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function testToCamelCase(string $original, string $expected)
1717
$this->assertEquals($expected, $camelCaseConvertor->toCamelCase($original));
1818
}
1919

20-
public function getTestData(): array
20+
public static function getTestData(): array
2121
{
2222
return [
2323
['foo.bar', 'FooBar'],

Test/Unit/Util/IdConvertorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function testToCamelCase(string $original, string $expected)
1717
$this->assertEquals($expected, $convertor->toElementId($original));
1818
}
1919

20-
public function getTestData(): array
20+
public static function getTestData(): array
2121
{
2222
return [
2323
['foo.bar', 'foo-bar'],

Test/Unit/Util/MagentoVersionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testIsMagentoVersion(string $version, string $operator, bool $ex
2626
$this->assertSame($expected, $magentoVersion->isMagentoVersion($version, $operator));
2727
}
2828

29-
static public function providerTestIsMagentoVersion(): array
29+
public static function providerTestIsMagentoVersion(): array
3030
{
3131
return [
3232
['2.4.6', 'eq', false],
@@ -58,7 +58,7 @@ public function testIsMageOSVersion(string $version, string $operator, bool $exp
5858
$this->assertSame($expected, $magentoVersion->isMageOSVersion($version, $operator));
5959
}
6060

61-
static public function providerTestIsMageOSVersion(): array
61+
public static function providerTestIsMageOSVersion(): array
6262
{
6363
return [
6464
['1.2.1-p2', 'lt', false],

Test/Unit/Validator/PastDateValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function testWithNoSimpleValues(string $value, bool|array $expectedResult
1717
$this->assertSame($expectedResult, $result, 'Tested value: ' . $value);
1818
}
1919

20-
public function getTestData(): array
20+
public static function getTestData(): array
2121
{
2222
return [
2323
['', true],

0 commit comments

Comments
 (0)