Permalink
Browse files

Fixing failing tests due to deleted assets.

  • Loading branch information...
1 parent 8243afa commit 67b69b3106b373a9e6819c464d292c730a411ce3 @markstory markstory committed Jan 14, 2010
Showing with 7 additions and 7 deletions.
  1. +7 −7 cake/tests/cases/libs/view/helpers/html.test.php
@@ -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;

0 comments on commit 67b69b3

Please sign in to comment.