Skip to content

Commit

Permalink
Add getImage to mock in testWebpFormatIsAllowedAsAnimatedFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Dec 3, 2024
1 parent 57adb89 commit 25b8f45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tests/Imagick/LayersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ public function testWebpFormatIsAllowedAsAnimatedFormat()
->method('getNumberImages')
->will($this->returnValue(42));

$resource->expects($this->atLeastOnce())
->method('getImage')
->will($this->returnValue($resource));

$layers = new Layers(new Image($resource, $palette, new MetadataBag()), $palette, $resource);

$layers->animate('webp', 200, 0);
Expand Down

0 comments on commit 25b8f45

Please sign in to comment.