$mock_file_system =
$this->
createMock(FileSystemInterface::
class);
$mock_config_factory =
$this->
createMock(ConfigFactoryInterface::
class);
$mock_file_url_generator =
$this->
createMock(FileUrlGeneratorInterface::
class);
$mock_time =
$this->
createMock(TimeInterface::
class);
$mock_language =
$this->
createMock(LanguageManagerInterface::
class);
$optimizer =
new CssCollectionOptimizerLazy($mock_grouper,
$mock_optimizer,
$mock_theme_manager,
$mock_dependency_resolver,
new RequestStack(),
$mock_file_system,
$mock_config_factory,
$mock_file_url_generator,
$mock_time,
$mock_language,
$mock_state);
$gpl_license =
[ 'name' => 'GNU-GPL-2.0-or-later',
'url' => 'https://www.drupal.org/licensing/faq',
'gpl-compatible' => TRUE,
];
$aggregate =
$optimizer->
optimizeGroup( [ 'items' =>
[ 'core/modules/system/tests/modules/common_test/common_test_css_import.css' =>
[ 'type' => 'file',
'data' => 'core/modules/system/tests/modules/common_test/common_test_css_import.css',
'preprocess' => TRUE,
'license' =>
$gpl_license,
],
'core/modules/system/tests/modules/common_test/common_test_css_import_not_preprocessed.css' =>
[ 'type' => 'file',
'data' => 'core/modules/system/tests/modules/common_test/common_test_css_import.css',