Skip to content

Commit 0fc6a69

Browse files
author
Joan He
committed
MAGETWO-34515: Refactored \Magento\Test\Integrity\ClassesTest::testCoversAnnotation
1 parent e475151 commit 0fc6a69

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

dev/tests/static/testsuite/Magento/Test/Integrity/ClassesTest.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,17 @@ public function testCoversAnnotation()
531531
{
532532
$files = \Magento\Framework\App\Utility\Files::init();
533533
$errors = [];
534-
foreach ($files->getFiles([BP . '/dev/tests/{integration,unit}'], '*') as $file) {
534+
$fileList = $files->getFiles(
535+
[
536+
BP . '/dev/tests/{integration,unit}',
537+
BP . '/app/code/*/*/Test/Unit',
538+
BP . '/lib/internal/*/*/*/Test/Unit',
539+
BP . '/dev/tools/Magento/Tools/*/Test/Unit',
540+
BP . '/setup/src/Magento/Setup/Test/Unit',
541+
],
542+
'*.php'
543+
);
544+
foreach ($fileList as $file) {
535545
$code = file_get_contents($file);
536546
if (preg_match('/@covers(DefaultClass)?\s+([\w\\\\]+)(::([\w\\\\]+))?/', $code, $matches)) {
537547
if ($this->isNonexistentEntityCovered($matches)) {

0 commit comments

Comments
 (0)