public function ComponentsInfoTest::newSystemUnderTest in Components! 8.2
Creates a ComponentsInfo service after the dependencies are set up.
6 calls to ComponentsInfoTest::newSystemUnderTest()
- ComponentsInfoTest::testFindComponentsInfo in tests/
src/ Unit/ ComponentsInfoTest.php - Tests finding components info from extension .info.yml files.
- ComponentsInfoTest::testGetAllModuleInfo in tests/
src/ Unit/ ComponentsInfoTest.php - Tests retrieving all components info from modules.
- ComponentsInfoTest::testGetAllThemeInfo in tests/
src/ Unit/ ComponentsInfoTest.php - Tests retrieving all components info from themes.
- ComponentsInfoTest::testGetModuleInfo in tests/
src/ Unit/ ComponentsInfoTest.php - Tests retrieving components info from a module.
- ComponentsInfoTest::testGetThemeInfo in tests/
src/ Unit/ ComponentsInfoTest.php - Tests retrieving components info from a theme.
File
- tests/
src/ Unit/ ComponentsInfoTest.php, line 91
Class
- ComponentsInfoTest
- @coversDefaultClass \Drupal\components\Template\ComponentsInfo @group components
Namespace
Drupal\Tests\components\UnitCode
public function newSystemUnderTest() {
$this->systemUnderTest = new ComponentsInfo($this->moduleExtensionList, $this->themeExtensionList, $this
->createMock('\\Drupal\\Core\\Extension\\ModuleHandler'), $this
->createMock('\\Drupal\\Core\\Theme\\ThemeManager'), $this
->createMock('\\Drupal\\Core\\Cache\\CacheBackendInterface'));
}