Cake\Upgrade\Test\TestCase\Shell\UpgradeShellTest::testFiles PHP Method

testFiles() public method

Should return all files in the src directory of this repo
public testFiles ( ) : void
return void
    public function testFiles()
    {
        $repoSrc = ROOT . DS . 'src';
        $this->sut->args = [$repoSrc];
        $files = $this->sut->Stage->files();
        foreach ($files as &$file) {
            $file = str_replace(DS, '/', substr($file, strlen($repoSrc) + 1));
        }
        $expected = ['Shell/UpgradeShell.php', 'Shell/Task/BaseTask.php', 'Shell/Task/RenameCollectionsTask.php', 'Shell/Task/NamespacesTask.php', 'Shell/Task/StageTask.php', 'Shell/Task/TestsTask.php', 'Shell/Task/AppUsesTask.php', 'Shell/Task/FixturesTask.php', 'Shell/Task/RenameClassesTask.php', 'Shell/Task/MethodNamesTask.php', 'Shell/Task/MethodSignaturesTask.php', 'Shell/Task/ChangeTrait.php', 'Shell/Task/LocationsTask.php', 'Shell/Task/I18nTask.php', 'Shell/Task/SkeletonTask.php', 'Shell/Task/PrefixedTemplatesTask.php'];
        sort($files);
        sort($expected);
        $this->assertSame($expected, $files, 'The files to process should be all files in the src folder');
    }
UpgradeShellTest