public function ThemesInstalledEventTest::testThemesInstalledEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/core_event_dispatcher/tests/src/Unit/Theme/ThemesInstalledEventTest.php \Drupal\Tests\core_event_dispatcher\Unit\Theme\ThemesInstalledEventTest::testThemesInstalledEvent()
Themes installed event test.
File
- modules/
core_event_dispatcher/ tests/ src/ Unit/ Theme/ ThemesInstalledEventTest.php, line 40
Class
- ThemesInstalledEventTest
- Class ThemesInstalledEventTest.
Namespace
Drupal\Tests\core_event_dispatcher\Unit\ThemeCode
public function testThemesInstalledEvent() : void {
$themes = [
'classy',
'bartik',
];
core_event_dispatcher_themes_installed($themes);
/** @var \Drupal\core_event_dispatcher\Event\Theme\ThemesInstalledEvent $event */
$event = $this->manager
->getRegisteredEvent(HookEventDispatcherInterface::THEMES_INSTALLED);
self::assertSame($themes, $event
->getThemeList());
}