ThemePrepareIconsCommand example

protected function tearDown(): void
    {
        static::assertDirectoryExists($this->testDir, 'Testdir: ' . $this->testDir . ' not found!');
        $testFiles = glob($this->testDir . 'processed/*');
        static::assertIsArray($testFiles);
        @array_map('unlink', $testFiles);
        @rmdir($this->testDir . 'processed');
    }

    public function testThemePrepareIconsCommandMissingPackageArg(): void
    {
        $command = new ThemePrepareIconsCommand();
        $commandTester = new CommandTester($command);
        $application = new Application();
        $application->add($command);

        static::expectExceptionMessage('Not enough arguments (missing: "package")');
        $commandTester->execute([
            'path' => $this->testDir,
        ]);
    }

    public function testThemePrepareIconsCommandMissingPathArg(): void
    {
Home | Imprint | This part of the site doesn't use cookies.