$this->container->
get('theme_installer'
)->
install(['starterkit_theme'
]);
$this->
config('system.theme'
)->
set('default', 'starterkit_theme'
)->
save();
} /**
* Tests item-list.html.twig.
*/
public function testItemList() { // Verify that empty items produce no output.
$variables =
[];
$expected = '';
$this->
assertThemeOutput('item_list',
$variables,
$expected, 'Empty %callback generates no output.'
);
// Verify that empty items with title produce no output.
$variables =
[];
$variables['title'
] = 'Some title';
$expected = '';
$this->
assertThemeOutput('item_list',
$variables,
$expected, 'Empty %callback with title generates no output.'
);
// Verify that empty items produce the empty string.
$variables =
[];
$variables['empty'
] = 'No items found.';
$expected = '<div class="item-list">No items found.</div>';