diff --git a/core/modules/image/src/Tests/Update/ScaleAndCropUpscaleUpdateTest.php b/core/modules/image/src/Tests/Update/ScaleAndCropUpscaleUpdateTest.php index dbc7ba3..12ebbc1 100644 --- a/core/modules/image/src/Tests/Update/ScaleAndCropUpscaleUpdateTest.php +++ b/core/modules/image/src/Tests/Update/ScaleAndCropUpscaleUpdateTest.php @@ -35,12 +35,9 @@ public function testImagePostUpdateScaleAndCropEffectUpscale() { // Test that Scale and crop effect has 'upscale' parameter set. $effect_data = $this->config('image.style.test_scale_and_crop_upscale')->get('effects.637b75a0-a80a-4bcc-8300-66994a27871d.data'); - if (array_key_exists('upscale', $effect_data)) { + if ($this->assertTrue(array_key_exists('upscale', $effect_data))) { $this->assertFalse($effect_data['upscale']); } - else { - $this->fail("Confirming that 'upscale' parameter is not updated properly"); - } } }