Skip to content

Commit

Permalink
Fixing failing tests due to deleted assets.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 14, 2010
1 parent 8243afa commit 67b69b3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cake/tests/cases/libs/view/helpers/html.test.php
Expand Up @@ -301,23 +301,23 @@ function testImageTag() {
*
* @return void
*/
function testImageTagWithTimestampping() {
function testImageWithTimestampping() {
Configure::write('Asset.timestamp', 'force');

$result = $this->Html->image('cake.icon.gif');
$this->assertTags($result, array('img' => array('src' => 'preg:/img\/cake\.icon\.gif\?\d+/', 'alt' => '')));
$result = $this->Html->image('cake.icon.png');
$this->assertTags($result, array('img' => array('src' => 'preg:/img\/cake\.icon\.png\?\d+/', 'alt' => '')));

Configure::write('debug', 0);
Configure::write('Asset.timestamp', 'force');

$result = $this->Html->image('cake.icon.gif');
$this->assertTags($result, array('img' => array('src' => 'preg:/img\/cake\.icon\.gif\?\d+/', 'alt' => '')));
$result = $this->Html->image('cake.icon.png');
$this->assertTags($result, array('img' => array('src' => 'preg:/img\/cake\.icon\.png\?\d+/', 'alt' => '')));

$webroot = $this->Html->webroot;
$this->Html->webroot = '/testing/longer/';
$result = $this->Html->image('cake.icon.gif');
$result = $this->Html->image('cake.icon.png');
$expected = array(
'img' => array('src' => 'preg:/\/testing\/longer\/img\/cake\.icon\.gif\?[0-9]+/', 'alt' => '')
'img' => array('src' => 'preg:/\/testing\/longer\/img\/cake\.icon\.png\?[0-9]+/', 'alt' => '')
);
$this->assertTags($result, $expected);
$this->Html->webroot = $webroot;
Expand Down

0 comments on commit 67b69b3

Please sign in to comment.