Skip to content

Commit

Permalink
Fix border test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jan 25, 2024
1 parent 81144ef commit 6bc9dec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Manipulators/BorderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace League\Glide\Manipulators;

use Intervention\Image\Geometry\Factories\RectangleFactory;
use Intervention\Image\Interfaces\ImageInterface;
use PHPUnit\Framework\TestCase;

Expand Down Expand Up @@ -95,6 +96,13 @@ public function testRunOverlay()
$mock->shouldReceive('width')->andReturn(100)->once();
$mock->shouldReceive('height')->andReturn(100)->once();
$mock->shouldReceive('drawRectangle')->with(5, 5, \Mockery::on(function ($closure) {
$mock2 = \Mockery::mock(RectangleFactory::class, function ($mock2) {
$mock2->shouldReceive('size')->once();
$mock2->shouldReceive('border')->once();
});

$closure($mock2);

return true;
}))->andReturn($mock)->once();
});
Expand Down

0 comments on commit 6bc9dec

Please sign in to comment.