$this->
assertEquals(['toolbar'
],
$dependencies['module'
]);
$this->
assertEquals(['olivero'
],
$dependencies['theme'
]);
$this->
assertEquals(['image.style.fallback', 'image.style.large', 'image.style.medium', 'image.style.small'
],
$dependencies['config'
]);
} /**
* @covers ::addImageStyleMapping
* @covers ::hasImageStyleMappings
*/
public function testHasImageStyleMappings() { $entity =
new ResponsiveImageStyle([]);
$this->
assertFalse($entity->
hasImageStyleMappings());
$entity->
addImageStyleMapping('test_breakpoint', '1x',
[ 'image_mapping_type' => 'image_style',
'image_mapping' => '',
]);
$this->
assertFalse($entity->
hasImageStyleMappings());
$entity->
removeImageStyleMappings();
$entity->
addImageStyleMapping('test_breakpoint', '1x',
[ 'image_mapping_type' => 'sizes',
'image_mapping' =>
[ 'sizes' => '(min-width:700px) 700px, 100vw',
'sizes_image_styles' =>
[],
],