BUGFIX If fixture file is NULL don't cause the test framework to break down because of it (from r100548)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105601 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-25 04:17:21 +00:00
parent 94801d75ff
commit 53ed23d8b6

View File

@ -129,6 +129,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
self::empty_temp_db();
if($fixtureFile) {
$fixtureFiles = (is_array($fixtureFile)) ? $fixtureFile : array($fixtureFile);
$i = 0;
@ -141,6 +142,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
if($i == 0) $this->fixture = $fixture;
$i++;
}
}
$this->logInWithPermission("ADMIN");
}