diff --git a/core/tests/Drupal/Tests/Core/Image/ImageTest.php b/core/tests/Drupal/Tests/Core/Image/ImageTest.php index 900d8da..4e3deab 100644 --- a/core/tests/Drupal/Tests/Core/Image/ImageTest.php +++ b/core/tests/Drupal/Tests/Core/Image/ImageTest.php @@ -249,20 +249,19 @@ public function testScaleSame() { ->with($this->equalTo('resize')) ->will($this->returnArgument(2)); - $result = $this->image->scale(88, 100); - $this->assertEquals($result['width'], 88); + $this->image->scale(88, 100); } /** * Tests \Drupal\Core\Image\Image::scaleAndCrop(). */ public function testScaleAndCropWidth() { - $this->toolkit->expects($this->at(0)) + $this->toolkit->expects($this->at(6)) ->method('process') ->with($this->equalTo('resize')) ->will($this->returnValue(TRUE)); - $this->toolkit->expects($this->at(1)) + $this->toolkit->expects($this->at(7)) ->method('process') ->with($this->equalTo('crop')) ->will($this->returnArgument(2)); @@ -275,12 +274,12 @@ public function testScaleAndCropWidth() { * Tests \Drupal\Core\Image\Image::scaleAndCrop(). */ public function testScaleAndCropHeight() { - $this->toolkit->expects($this->at(0)) + $this->toolkit->expects($this->at(6)) ->method('process') ->with($this->equalTo('resize')) ->will($this->returnValue(TRUE)); - $this->toolkit->expects($this->at(1)) + $this->toolkit->expects($this->at(7)) ->method('process') ->with($this->equalTo('crop')) ->will($this->returnArgument(2));