diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7cfa881..f82e971 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,7 +3,7 @@ on: branches: - main - master - - availability + - debug/github_action_error pull_request: branches: - main @@ -31,8 +31,8 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - php: [ '7.1', '7.2', '7.3', '7.4' ] - mysql: [ '5.7', '8.0' ] + php: [ '7.4' ] + mysql: [ '5.7' ] env: NC3_BUILD_DIR: "/opt/nc3" diff --git a/Test/Case/AllCircularNoticesTest.php b/Test/Case/AllCircularNoticesTest.php index 2eb94dc..939c9a9 100644 --- a/Test/Case/AllCircularNoticesTest.php +++ b/Test/Case/AllCircularNoticesTest.php @@ -22,9 +22,22 @@ class AllCircularNoticesTest extends CakeTestSuite { * All test suite * * @return CakeTestSuite + * @SuppressWarnings(PHPMD) */ public static function suite() { $plugin = preg_replace('/^All([\w]+)Test$/', '$1', __CLASS__); + + $Folder = new Folder(CakePlugin::path($plugin) . 'Test' . DS . 'Case'); + $files = $Folder->tree(null, true, 'files'); + foreach ($files as $file) { + if (preg_match('/\/All([\w]+)Test\.php$/', $file)) { + continue; + } + if (substr($file, -8) === 'Test.php') { + var_dump($file); + } + } + $suite = new CakeTestSuite(sprintf('All %s Plugin tests', $plugin)); $suite->addTestDirectoryRecursive(CakePlugin::path($plugin) . 'Test' . DS . 'Case'); return $suite;