$entity =
new ResponsiveImageStyle([''
]);
$entity->
addImageStyleMapping('test_breakpoint', '1x',
[ 'image_mapping_type' => 'image_style',
'image_mapping' => 'large',
]);
$expected =
[ 'breakpoint_id' => 'test_breakpoint',
'multiplier' => '1x',
'image_mapping_type' => 'image_style',
'image_mapping' => 'large',
];
$this->
assertEquals($expected,
$entity->
getImageStyleMapping('test_breakpoint', '1x'
));
$this->
assertNull($entity->
getImageStyleMapping('test_unknown_breakpoint', '1x'
));
} /**
* @covers ::addImageStyleMapping
* @covers ::getKeyedImageStyleMappings
*/
public function testGetKeyedImageStyleMappings() { $entity =
new ResponsiveImageStyle([''
]);
$entity->
addImageStyleMapping('test_breakpoint', '1x',
[ 'image_mapping_type' => 'image_style',