getManufacturerLink example



    public function testRefreshPlugins(): void
    {
        $this->pluginService->refreshPlugins($this->context, new NullIO());

        $plugin = $this->fetchSwagTestPluginEntity();

        $this->assertDefaultPlugin($plugin);
        $this->assertPluginMetaInformation($plugin);
        static::assertSame('English description', $plugin->getDescription());
        static::assertSame('https://www.test.com/', $plugin->getManufacturerLink());
        static::assertSame('https://www.test.com/support', $plugin->getSupportLink());
    }

    public function testRefreshPluginWithoutExtraLabelProperty(): void
    {
        $errors = $this->pluginService->refreshPlugins($this->context, new NullIO());

        static::assertTrue($errors->count() > 0);

        $composerJsonException = $errors->filter(fn (ShopwareHttpException $error) => $error instanceof PluginComposerJsonInvalidException);

        
Home | Imprint | This part of the site doesn't use cookies.