Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check if a generated css url has a timestamp when Asset.timestamp =…
… force.
  • Loading branch information
JoshuaLuckers committed Dec 13, 2017
1 parent 09292b3 commit 4b1b86c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/TestCase/View/Helper/UrlHelperTest.php
Expand Up @@ -380,6 +380,19 @@ public function testCss()
$this->assertEquals('css/style.css', $result);
}

/**
* Test css with `Asset.timestamp` = force
*
* @return void
*/
public function testCssTimestampForce()
{
Configure::write('Asset.timestamp', 'force');

$result = $this->Helper->css('cake.generic');
$this->assertRegExp('/' . preg_quote('css/cake.generic.css?', '/') . '[0-9]+/', $result);
}

/**
* Test generating paths with webroot().
*
Expand Down

0 comments on commit 4b1b86c

Please sign in to comment.