$phpunitFiles =
$finder->
in($projectDir) ->
depth(0
) ->
files() ->
name('phpunit.*.xml'
);
$filesystem->
remove($phpunitFiles);
} public function testGetClasses(): void
{ // if the test does not find any shopware classes run: composer dump-autoload -o
$output =
$this->
runCommand([ ('--' . GetClassesPerAreaCommand::OPTION_NAMESPACE_PATTERN
) => GetClassesPerAreaCommand::NAMESPACE_PATTERN_DEFAULT,
('--' . GetClassesPerAreaCommand::OPTION_JSON
) => true,
]);
$result =
json_decode($output, true
);
static::
assertNotNull($result);
static::
assertArrayHasKey('core',
$result);
static::
assertArrayHasKey(Framework::
class,
$result['core'
]);
static::
assertArrayHasKey(System::
class,
$result['core'
]);