AllCrudTest::suite PHP Method

suite() public static method

public static suite ( )
    public static function suite()
    {
        $suite = new CakeTestSuite('All Crud plugin tests');
        $path = App::pluginPath('Crud');
        $testPath = $path . DS . 'Test' . DS . 'Case';
        if (!is_dir($testPath)) {
            continue;
        }
        $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($testPath), RecursiveIteratorIterator::CHILD_FIRST);
        foreach ($iterator as $folder) {
            $folder = (string) $folder;
            $folderName = basename($folder);
            if ($folderName === '.' || $folderName === '..') {
                continue;
            }
            $suite->addTestDirectory($folder);
        }
        $suite->addTestDirectory($testPath);
        return $suite;
    }
AllCrudTest