OXDEV-3559 Fix tests autoloader

This commit is contained in:
Florian Engelhardt 2020-07-29 11:53:01 +02:00
parent cbcd2c8db5
commit f3451e1c90
No known key found for this signature in database
GPG Key ID: 39B8DAD75A95B500

View File

@ -81,8 +81,10 @@ class Installer
$composerDefinition['name'] = $packageFull;
$composerDefinition['description'] = '';
$composerDefinition['autoload']['psr-4'] = ["{$vendor}\\GraphQL\\{$package}\\" => 'src/'];
$composerDefinition['autoload-dev']['psr-4'] = ["{$vendor}\\GraphQL\\{$package}\\Tests\\" => 'tests/'];
$composerDefinition['autoload']['psr-4'] = [
"{$vendor}\\GraphQL\\{$package}\\" => 'src/',
"{$vendor}\\GraphQL\\{$package}\\Tests\\" => 'tests/'
];
$composerDefinition['extra']['oxideshop']['target-directory'] = $packageFull;
return $composerDefinition;