diff --git a/core/tests/Drupal/Tests/Core/Image/ImageTest.php b/core/tests/Drupal/Tests/Core/Image/ImageTest.php index 4e3deab..e5f162f 100644 --- a/core/tests/Drupal/Tests/Core/Image/ImageTest.php +++ b/core/tests/Drupal/Tests/Core/Image/ImageTest.php @@ -245,9 +245,7 @@ public function testScaleHeight() { public function testScaleSame() { // Dimensions are the same, resize should not be called. $this->toolkit->expects($this->never()) - ->method('process') - ->with($this->equalTo('resize')) - ->will($this->returnArgument(2)); + ->method('process'); $this->image->scale(88, 100); } @@ -256,12 +254,12 @@ public function testScaleSame() { * Tests \Drupal\Core\Image\Image::scaleAndCrop(). */ public function testScaleAndCropWidth() { - $this->toolkit->expects($this->at(6)) + $this->toolkit->expects($this->at(7)) ->method('process') ->with($this->equalTo('resize')) ->will($this->returnValue(TRUE)); - $this->toolkit->expects($this->at(7)) + $this->toolkit->expects($this->at(11)) ->method('process') ->with($this->equalTo('crop')) ->will($this->returnArgument(2)); @@ -274,12 +272,12 @@ public function testScaleAndCropWidth() { * Tests \Drupal\Core\Image\Image::scaleAndCrop(). */ public function testScaleAndCropHeight() { - $this->toolkit->expects($this->at(6)) + $this->toolkit->expects($this->at(7)) ->method('process') ->with($this->equalTo('resize')) ->will($this->returnValue(TRUE)); - $this->toolkit->expects($this->at(7)) + $this->toolkit->expects($this->at(11)) ->method('process') ->with($this->equalTo('crop')) ->will($this->returnArgument(2));