Skip to content

Commit

Permalink
Remove unused test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
pboivin committed Aug 31, 2022
1 parent 5126e0a commit f02fbda
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions tests/ImageSetRenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,55 +352,6 @@ protected function prepareForPicture($options = [])
return [$imageSetRender, $image2, $lqip];
}

protected function prepareForPictureWithSizes($options = [])
{
($image1 = $this->getImage())
->cached()
->shouldReceive('url')
->andReturn('cached1.jpg');

($image2 = $this->getImage())
->cached()
->shouldReceive('url')
->andReturn('cached2.jpg');

$image2
->cached()
->shouldReceive('width')
->andReturn(1000)
->shouldReceive('height')
->andReturn(1000);

($lqip = $this->getImage())
->cached()
->shouldReceive('url')
->andReturn('lqip.jpg');

($set = $this->mockImageSet())->shouldReceive('data')->andReturn([
'sources' => [
[
'image' => '01.jpg',
'widths' => [500],
'sizes' => '50vw',
'media' => '(max-width: 500px)',
'srcset' => [['image' => $image1, 'width' => 500]],
],
[
'image' => 'source.jpg',
'widths' => [1000],
'sizes' => '50vw',
'media' => '(min-width: 501px)',
'srcset' => [['image' => $image2, 'width' => 1000]],
],
],
'lqip' => $lqip,
]);

$imageSetRender = new ImageSetRender($set, $options);

return [$imageSetRender, $image2, $lqip];
}

protected function prepareForPictureWidths($options = [])
{
($image1 = $this->getImage())
Expand Down

0 comments on commit f02fbda

Please sign in to comment.