protected function assertImageEffect(array
$expected_operations, string
$effect_name, array
$data): void
{ $effect =
$this->imageEffectPluginManager->
createInstance($effect_name,
['data' =>
$data]);
$image =
$this->
getImage();
$this->
imageTestReset();
// The test toolkit does not actually implement the operation plugins,
// therefore the calls to TestToolkit::apply() will fail. That's not a
// problem here, we are not testing the actual operations.
$this->
assertFalse($effect->
applyEffect($image));
$this->
assertToolkitOperationsCalled($expected_operations);
}}