diff --git a/tests/TestCase/View/Helper/UrlHelperTest.php b/tests/TestCase/View/Helper/UrlHelperTest.php index f119cbd87c0..ac80fa5c7a7 100644 --- a/tests/TestCase/View/Helper/UrlHelperTest.php +++ b/tests/TestCase/View/Helper/UrlHelperTest.php @@ -342,6 +342,19 @@ public function testImage() $this->assertEquals('CID:foo.jpg', $result); } + /** + * Test image with `Asset.timestamp` = force + * + * @return void + */ + public function testImageTimestampForce() + { + Configure::write('Asset.timestamp', 'force'); + + $result = $this->Helper->image('cake.icon.png'); + $this->assertRegExp('/' . preg_quote('img/cake.icon.png?', '/') . '[0-9]+/', $result); + } + /** * test css *