PluginFinder example

/** * @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
    {
        
Home | Imprint | This part of the site doesn't use cookies.