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

Commit 07030bf

Browse files
committed
Added test for Image::imageUrl
1 parent 3c91789 commit 07030bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/TestCase/View/Helper/ImageHelperTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ public function testImageUrl() {
8181

8282
$result = $this->Image->imageUrl($image, 't150', ['pathPrefix' => '/src/']);
8383
$this->assertEquals('/src/test/path/testimage.c3f33c2a.jpg', $result);
84+
85+
86+
$result = $this->Image->imageUrl($image, null, ['pathPrefix' => '/src/']);
87+
$this->assertEquals('/src/test/path/testimage.jpg', $result);
8488
}
8589

8690
/**

0 commit comments

Comments
 (0)