Skip to content

Commit 3be04a3

Browse files
committed
ACQE-5710 : Fix Unit Test Failures
1 parent e11e2ad commit 3be04a3

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

dev/tests/unit/Magento/FunctionalTestFramework/Console/GenerateTestsCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function testParseConfigParallelOptions($time, $groups, $expected): void
4141
*
4242
* @return array
4343
*/
44-
public function configParallelOptions(): array
44+
public static function configParallelOptions(): array
4545
{
4646
return [
4747
[null, null, ['parallelByTime', 600000]], /* #0 */

dev/tests/unit/Magento/FunctionalTestFramework/Module/Util/ModuleUtilTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testUtf8SafeControlCharacterTrim(string $input, string $output,
3434
*
3535
* @return array
3636
*/
37-
public function inDataProvider(): array
37+
public static function inDataProvider(): array
3838
{
3939
$ctr1 = '‹';
4040
$ctr2 = 'Œ';

dev/tests/unit/Magento/FunctionalTestFramework/Util/ComposerModuleResolverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function testFindAllComposerJsonFiles($dir, $expected)
9898
*
9999
* @return array
100100
*/
101-
public function findComposerJsonFilesAtDepthDataProvider()
101+
public static function findComposerJsonFilesAtDepthDataProvider()
102102
{
103103
$baseDir = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Composer' . DIRECTORY_SEPARATOR . '_files'
104104
. DIRECTORY_SEPARATOR . 'dir1' . DIRECTORY_SEPARATOR . 'dir2';
@@ -138,7 +138,7 @@ public function findComposerJsonFilesAtDepthDataProvider()
138138
*
139139
* @return array
140140
*/
141-
public function findAllComposerJsonFilesDataProvider()
141+
public static function findAllComposerJsonFilesDataProvider()
142142
{
143143
$baseDir = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Composer' . DIRECTORY_SEPARATOR . '_files'
144144
. DIRECTORY_SEPARATOR . 'dir1' . DIRECTORY_SEPARATOR . 'dir2';

dev/tests/unit/Magento/FunctionalTestFramework/Util/GenerationErrorHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function testGetAllErrorMessages(string $expectedErrMessages, array $erro
254254
*
255255
* @return array
256256
*/
257-
public function getAllErrorMessagesDataProvider(): array
257+
public static function getAllErrorMessagesDataProvider(): array
258258
{
259259
return [
260260
['', []],

dev/tests/unit/Magento/FunctionalTestFramework/Util/Path/FilePathFormatterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testFormatWithException(string $path, ?bool $withTrailingSeparat
7070
*
7171
* @return array
7272
*/
73-
public function formatDataProvider(): array
73+
public static function formatDataProvider(): array
7474
{
7575
$path1 = rtrim(TESTS_BP, '/');
7676
$path2 = $path1 . DIRECTORY_SEPARATOR;
@@ -92,7 +92,7 @@ public function formatDataProvider(): array
9292
*
9393
* @return array
9494
*/
95-
public function formatExceptionDataProvider(): array
95+
public static function formatExceptionDataProvider(): array
9696
{
9797
return [
9898
['abc', null],

dev/tests/unit/Magento/FunctionalTestFramework/Util/Path/UrlFormatterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testFormatWithException(string $path, ?bool $withTrailingSeparat
5858
*
5959
* @return array
6060
*/
61-
public function formatDataProvider(): array
61+
public static function formatDataProvider(): array
6262
{
6363
$url1 = 'http://magento.local/index.php';
6464
$url2 = $url1 . '/';
@@ -97,7 +97,7 @@ public function formatDataProvider(): array
9797
*
9898
* @return array
9999
*/
100-
public function formatExceptionDataProvider(): array
100+
public static function formatExceptionDataProvider(): array
101101
{
102102
return [
103103
['', null]

0 commit comments

Comments
 (0)