'action',
'data',
]) ->
values([ 'presetid' => '1',
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_deprecated_scale',
'data' => 'a:3:{s:3:"fit";s:7:"outside";s:5:"width";s:3:"200";s:6:"height";s:3:"200";}',
])->
execute();
$this->
startCollectingMessages();
$this->
executeMigration('d6_imagecache_presets'
);
$messages =
iterator_to_array($this->migration->
getIdMap()->
getMessages());
$this->
assertCount(1,
$messages);
$this->
assertStringContainsString('The "image_deprecated_scale" plugin does not exist.',
$messages[0
]->message
);
$this->
assertEquals(MigrationInterface::MESSAGE_ERROR,
$messages[0
]->level
);
} /**
* Tests that missing action's causes failures.
*/
public function testInvalidCropValues() {