class CachedResolvedConfigLoaderInvalidatorTest extends TestCase
{ private CachedResolvedConfigLoaderInvalidator
$cachedResolvedConfigLoaderInvalidator;
private MockedCacheInvalidator
$cacheInvalidator;
protected function setUp(): void
{ $this->cacheInvalidator =
new MockedCacheInvalidator();
$this->cachedResolvedConfigLoaderInvalidator =
new CachedResolvedConfigLoaderInvalidator($this->cacheInvalidator, true
);
} public function testGetSubscribedEvents(): void
{ static::
assertEquals( [ ThemeConfigChangedEvent::
class => 'invalidate',
ThemeAssignedEvent::
class => 'assigned',
ThemeConfigResetEvent::
class => 'reset',
],
CachedResolvedConfigLoaderInvalidator::
getSubscribedEvents() );