Skip to content

Commit

Permalink
Merge pull request #4728 from ceeram/3.0-htmlhelpertest-cleanup
Browse files Browse the repository at this point in the history
cleanup files created in tests
  • Loading branch information
markstory committed Sep 25, 2014
2 parents 86eee71 + 5fe843d commit 00deb7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/TestCase/View/Helper/HtmlHelperTest.php
Expand Up @@ -448,7 +448,7 @@ public function testImageTagWithTheme() {
$this->skipIf(!is_writable(WWW_ROOT), 'Cannot write to webroot.');

$testfile = WWW_ROOT . 'test_theme/img/__cake_test_image.gif';
new File($testfile, true);
$File = new File($testfile, true);

Configure::write('Asset.timestamp', true);
Configure::write('debug', true);
Expand All @@ -471,6 +471,7 @@ public function testImageTagWithTheme() {
'alt' => ''
));
$this->assertHtml($expected, $result);
$File->delete();
}

/**
Expand Down Expand Up @@ -1020,7 +1021,7 @@ public function testScriptInTheme() {
$this->skipIf(!is_writable(WWW_ROOT), 'Cannot write to webroot.');

$testfile = WWW_ROOT . '/test_theme/js/__test_js.js';
new File($testfile, true);
$File = new File($testfile, true);

$this->Html->Url->request->webroot = '/';
$this->Html->Url->theme = 'TestTheme';
Expand All @@ -1029,6 +1030,7 @@ public function testScriptInTheme() {
'script' => array('src' => '/test_theme/js/__test_js.js')
);
$this->assertHtml($expected, $result);
$File->delete();
}

/**
Expand Down

0 comments on commit 00deb7c

Please sign in to comment.