Просмотр исходного кода

DX: Use relative fixture path as integration test case's name (#7147)

Greg Korba 1 год назад
Родитель
Сommit
fc41c987a8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tests/Test/AbstractIntegrationTestCase.php

+ 1 - 1
tests/Test/AbstractIntegrationTestCase.php

@@ -156,7 +156,7 @@ abstract class AbstractIntegrationTestCase extends TestCase
                 continue;
             }
 
-            $tests[$file->getPathname()] = [
+            $tests[substr($file->getPathname(), \strlen(realpath(__DIR__.'/../../')) + 1)] = [
                 $factory->create($file),
             ];
         }