assertNoDefaultPlugin example

static::assertSame('https://www.test.com/support', $plugin->getTranslated()['supportLink']);
    }

    public function testRefreshPluginsWithDifferentDefaultLanguage(): void
    {
        $this->setNewSystemLanguage($this->iso);

        $this->pluginService->refreshPlugins(Context::createDefaultContext()new NullIO());

        $plugin = $this->fetchSwagTestNoDefaultLangPluginEntity();

        $this->assertNoDefaultPlugin($plugin);
        $this->assertPluginMetaInformation($plugin);
        static::assertSame('Dutch Beschrijving', $plugin->getTranslated()['description']);
        static::assertSame('https://www.test.nl/', $plugin->getTranslated()['manufacturerLink']);
        static::assertSame('https://www.test.nl/support', $plugin->getTranslated()['supportLink']);
    }

    public function testRefreshPluginsWithGermanContext(): void
    {
        $context = new Context(new SystemSource()[], Defaults::CURRENCY, [$this->getDeDeLanguageId()]);

        $this->pluginService->refreshPlugins($contextnew NullIO());

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