Skip to content

Commit

Permalink
Test generated file location
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Apr 16, 2019
1 parent 872396e commit 912bdb7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/php/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,14 @@ public function testCacheFilename()
$this->assertContains($neededPart, $imageFilename, 'Filename for cached image is correctly generated');
}

public function testGenerateImageInSameFolderAsOriginal()
{
// All fixtures are in a subfolder
$original = $this->objFromFixture(Image::class, 'imageWithoutTitle');
$generated = $original->Pad(200, 200, 'CCCCCC', 0);
$this->assertEquals($original->Parent()->getFilename(), $generated->Parent()->getFilename());
}

/**
* Ensure dimensions are cached
*/
Expand Down

0 comments on commit 912bdb7

Please sign in to comment.