Skip to content

Commit

Permalink
Add tests for Image::getExif() & Image::setExif()
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Oct 5, 2023
1 parent 26af25d commit d317c47
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/Drivers/Abstract/AbstractImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Intervention\Image\Interfaces\FrameInterface;
use Intervention\Image\Interfaces\ImageInterface;
use Intervention\Image\Interfaces\ModifierInterface;
use Intervention\Image\Interfaces\PointInterface;
use Intervention\Image\Tests\TestCase;
use Mockery;

Expand Down Expand Up @@ -427,6 +426,15 @@ public function testPadDown(): void
$this->assertInstanceOf(ImageInterface::class, $result);
}

public function testSetGetExif(): void
{
$img = $this->abstractImageMock();
$img->setExif((['test' => 'value']));

$this->assertInstanceOf(Collection::class, $img->getExif());
$this->assertEquals('value', $img->getExif('test'));
}

public function testDestroy(): void
{
$img = $this->abstractImageMock();
Expand Down

0 comments on commit d317c47

Please sign in to comment.