getInvalidatedTags example

$expectedInvalidatedTags = [
            $name,
            CachedDomainLoader::CACHE_KEY,
            'translation.catalog.' . $salesChannelId,
        ];

        $this->cachedResolvedConfigLoaderInvalidator->assigned($event);

        static::assertEquals(
            $expectedInvalidatedTags,
            $this->cacheInvalidator->getInvalidatedTags()
        );
    }

    public function testInvalidate(): void
    {
        $themeId = Uuid::randomHex();
        $event = new ThemeConfigChangedEvent($themeId['test' => 'test']);

        $expectedInvalidatedTags = [
            'theme-config-' . $themeId,
            'theme.test',
        ];
Home | Imprint | This part of the site doesn't use cookies.