createMock(EntrypointLookupInterface::class); $entryLookup->expects($this->any())->method('getCssFiles')->willReturn($files); $container = new Container(new ParameterBag([])); $container->set(EntrypointLookupInterface::class, $entryLookup); return new EncoreExtension($container, __DIR__ . '/../'); } public function testGetSubscribedServices(): void { self::assertEquals([EntrypointLookupInterface::class], EncoreExtension::getSubscribedServices()); } public function testGetEncoreEntryCssSource(): void { $sut = $this->getSut(['test.css', 'test1.css']); $css = 'body { margin: 0; }p { color: red; font-style: italic; }'; self::assertEquals($css, $sut->getEncoreEntryCssSource('blub')); } }