Skip to content
Permalink
Browse files

BUG Prevent live manifest loading files from nested test directories

E.g. framework/admin/tests
  • Loading branch information
Damian Mooyman
Damian Mooyman committed Mar 31, 2016
1 parent 78892f0 commit e8a68c42ce022f46c25688c3538e081c30d50a19
@@ -37,9 +37,8 @@ public function acceptDir($basename, $pathname, $depth) {
return false;
}
// If we're not in testing mode, then skip over the tests directory in
// the module root.
if ($this->getOption('ignore_tests') && $depth == 2 && $basename == self::TESTS_DIR) {
// If we're not in testing mode, then skip over any tests directories.
if ($this->getOption('ignore_tests') && $basename == self::TESTS_DIR) {
return false;
}
@@ -43,7 +43,8 @@ public function testIgnoreTests() {
$this->assertFinderFinds($finder, array(
'module/module.txt',
'module/tests/tests.txt'
'module/tests/tests.txt',
'module/code/tests/tests2.txt'
));
}

0 comments on commit e8a68c4

Please sign in to comment.
You can’t perform that action at this time.