Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Added test for Image::imageUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
skie committed Apr 9, 2019
1 parent 3c91789 commit 07030bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/TestCase/View/Helper/ImageHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public function testImageUrl() {

$result = $this->Image->imageUrl($image, 't150', ['pathPrefix' => '/src/']);
$this->assertEquals('/src/test/path/testimage.c3f33c2a.jpg', $result);


$result = $this->Image->imageUrl($image, null, ['pathPrefix' => '/src/']);
$this->assertEquals('/src/test/path/testimage.jpg', $result);
}

/**
Expand Down

0 comments on commit 07030bf

Please sign in to comment.