use Shopware\Core\Framework\Plugin\Util\PluginFinder;
/**
* @internal
*
* @covers \Shopware\Core\Framework\Plugin\Util\PluginFinder
*/
class PluginFinderTest extends TestCase
{ public function testFailsOnMissingRootComposerFile(): void
{ $errors =
new ExceptionCollection();
(new PluginFinder(new PackageProvider()))->
findPlugins( __DIR__,
__DIR__ . '/../../../../../..',
$errors,
new NullIO() );
static::
assertInstanceOf(PluginComposerJsonInvalidException::
class,
$errors->
first());
} public function testLocalLoadsTheComposerJsonContents(): void
{