'image_mapping_type' => 'image_style',
'image_mapping' => 'thumbnail',
],
'2x' =>
[ 'breakpoint_id' => 'test_breakpoint2',
'multiplier' => '2x',
'image_mapping_type' => 'image_style',
'image_mapping' => '_original image_',
],
],
];
$this->
assertEquals($expected,
$entity->
getKeyedImageStyleMappings());
// Add another mapping to ensure keyed mapping static cache is rebuilt.
$entity->
addImageStyleMapping('test_breakpoint2', '2x',
[ 'image_mapping_type' => 'image_style',
'image_mapping' => 'medium',
]);
$expected['test_breakpoint2'
]['2x'
] =
[ 'breakpoint_id' => 'test_breakpoint2',
'multiplier' => '2x',
'image_mapping_type' => 'image_style',
'image_mapping' => 'medium',
];