Fixed Image tests

This commit is contained in:
franck
2013-08-16 12:28:26 +02:00
parent ab5e845ad3
commit 6abd590fb5
2 changed files with 8 additions and 5 deletions

View File

@@ -171,7 +171,9 @@ class ImageTest extends \PHPUnit_Framework_TestCase
if ($config != null) $config->setValue($oldval)->save(); if ($config != null) $config->setValue($oldval)->save();
$this->assertFileExists(THELIA_WEB_DIR."/cache/tests/test-image-1.png"); $imgdir = ConfigQuery::read('image_cache_dir_from_web_root');
$this->assertFileExists(THELIA_WEB_DIR."/$imgdir/tests/test-image-1.png");
} }
/** /**
@@ -198,7 +200,9 @@ class ImageTest extends \PHPUnit_Framework_TestCase
if ($config != null) $config->setValue($oldval)->save(); if ($config != null) $config->setValue($oldval)->save();
$this->assertFileExists(THELIA_WEB_DIR."/cache/tests/test-image-9.png"); $imgdir = ConfigQuery::read('image_cache_dir_from_web_root');
$this->assertFileExists(THELIA_WEB_DIR."/$imgdir/tests/test-image-9.png");
} }
/** /**
@@ -367,5 +371,4 @@ class ImageTest extends \PHPUnit_Framework_TestCase
$image->clearCache($event); $image->clearCache($event);
} }
} }

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit <phpunit
colors="true" colors="false"
convertErrorsToExceptions= "true" convertErrorsToExceptions= "true"
convertNoticesToExceptions= "true" convertNoticesToExceptions= "true"
convertWarningsToExceptions= "true" convertWarningsToExceptions= "true"