diff --git a/core/modules/image/src/Tests/Update/ScaleAndCropUpscaleUpdateTest.php b/core/modules/image/src/Tests/Update/ScaleAndCropUpscaleUpdateTest.php index d939144..c054911 100644 --- a/core/modules/image/src/Tests/Update/ScaleAndCropUpscaleUpdateTest.php +++ b/core/modules/image/src/Tests/Update/ScaleAndCropUpscaleUpdateTest.php @@ -30,16 +30,16 @@ protected function setDatabaseDumpFiles() { public function testImagePostUpdateScaleAndCropEffectUpscale() { $image_style = ImageStyle::load('test_scale_and_crop_upscale'); // Test that Scale and crop effect does not have 'upscale' parameter set. - $effects = $image_style->getEffects(); - $this->assertFalse(isset($effects[0]->getConfiguration()['data']['upscale'])); + $effect = $image_style->getEffect('637b75a0-a80a-4bcc-8300-66994a27871d'); + $this->assertFalse(isset($effect->getConfiguration()['data']['upscale'])); $this->runUpdates(); $image_style = ImageStyle::load('test_scale_and_crop_upscale'); // Test that Scale and crop effect has 'upscale' parameter set. - $effects = $image_style->getEffects(); - $this->assertTrue(isset($effects[0]->getConfiguration()['data']['upscale'])); - $this->assertFalse($effects[0]->getConfiguration()['data']['upscale']); + $effect = $image_style->getEffect('637b75a0-a80a-4bcc-8300-66994a27871d'); + $this->assertTrue(isset($effect->getConfiguration()['data']['upscale'])); + $this->assertFalse($effect->getConfiguration()['data']['upscale']); } }