Skip to content

Commit 7629771

Browse files
committed
test(UseLeadingBackslash): Remove unsed test file, improve test run to fail in such a case (#3554461)
1 parent caec767 commit 7629771

File tree

2 files changed

+4
-45
lines changed

2 files changed

+4
-45
lines changed

tests/Drupal/Classes/UseLeadingBackslashUnitTest.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

tests/Drupal/CoderSniffUnitTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ final public function testSniff()
152152
// $testFileBase = $this->testsDir.$categoryName.DIRECTORY_SEPARATOR.$sniffName.'UnitTest.';
153153
// Get a list of all test files to check.
154154
$testFiles = $this->getTestFiles($testFileBase);
155+
$this->assertNotEmpty(
156+
$testFiles,
157+
'No test files found for the '.$sniffCode.' unit test.'
158+
);
155159

156160
$config = new Config();
157161
$config->cache = false;

0 commit comments

Comments
 (0)