Skip to content
Permalink
Browse files

cleanup files created in tests

  • Loading branch information...
ceeram committed Sep 25, 2014
1 parent 86eee71 commit 5fe843debf55a61862eeab33c66b5f499c63cf1a
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/TestCase/View/Helper/HtmlHelperTest.php
@@ -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);
@@ -471,6 +471,7 @@ public function testImageTagWithTheme() {
'alt' => ''
));
$this->assertHtml($expected, $result);
$File->delete();
}
/**
@@ -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';
@@ -1029,6 +1030,7 @@ public function testScriptInTheme() {
'script' => array('src' => '/test_theme/js/__test_js.js')
);
$this->assertHtml($expected, $result);
$File->delete();
}
/**

0 comments on commit 5fe843d

Please sign in to comment.
You can’t perform that action at this time.