public function AssetCollectorTest::testEventAlwaysFires in Entity Print 8.2
CSS Alter event should always fire, even when no entries in the theme file.
File
- tests/
src/ Unit/ AssetCollectorTest.php, line 23
Class
- AssetCollectorTest
- Test the asset collector service.
Namespace
Drupal\Tests\entity_print\UnitCode
public function testEventAlwaysFires() {
$event_dispatcher = $this
->prophesize(EventDispatcherInterface::class);
$event_dispatcher
->dispatch(Argument::cetera())
->shouldBeCalled();
$asset_collector = new AssetCollector($this
->getThemeHandlerMock()
->reveal(), $this
->getInfoParserMock()
->reveal(), $event_dispatcher
->reveal());
$this
->assertEquals([], $asset_collector
->getCssLibraries([]));
}