Skip to content

Commit

Permalink
Merge branch '7.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Jan 20, 2020
2 parents e71c010 + d59042e commit 4b2e990
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function load(ImageInterface $image, array $options = [])
$image,
[
'size' => $options,
'mode' => ImageInterface::THUMBNAIL_INSET,
'mode' => 'inset',
]
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function load(ImageInterface $image, array $options = [])
$image,
[
'size' => [null, $options[0]],
'mode' => ImageInterface::THUMBNAIL_INSET,
'mode' => 'inset',
]
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function load(ImageInterface $image, array $options = [])
$image,
[
'size' => [$options[0], null],
'mode' => ImageInterface::THUMBNAIL_INSET,
'mode' => 'inset',
]
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testLoad()
$this->innerLoader
->expects($this->once())
->method('load')
->with($image, $this->equalTo(['size' => $options, 'mode' => ImageInterface::THUMBNAIL_INSET]))
->with($image, $this->equalTo(['size' => $options, 'mode' => 'inset']))
->will($this->returnValue($image));

$this->assertSame($image, $this->loader->load($image, $options));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testLoad()
$this->innerLoader
->expects($this->once())
->method('load')
->with($image, $this->equalTo(['size' => [null, $height], 'mode' => ImageInterface::THUMBNAIL_INSET]))
->with($image, $this->equalTo(['size' => [null, $height], 'mode' => 'inset']))
->will($this->returnValue($image));

$this->assertSame($image, $this->loader->load($image, [$height]));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testLoad()
$this->innerLoader
->expects($this->once())
->method('load')
->with($image, $this->equalTo(['size' => [$width, null], 'mode' => ImageInterface::THUMBNAIL_INSET]))
->with($image, $this->equalTo(['size' => [$width, null], 'mode' => 'inset']))
->will($this->returnValue($image));

$this->assertSame($image, $this->loader->load($image, [$width]));
Expand Down

0 comments on commit 4b2e990

Please sign in to comment.