diff --git a/dev/SapphireTest.php b/dev/SapphireTest.php index 84eba12f0..0636a7cdf 100644 --- a/dev/SapphireTest.php +++ b/dev/SapphireTest.php @@ -72,10 +72,15 @@ class SapphireTest extends PHPUnit_Framework_TestCase { $fixtureFiles = (is_array($fixtureFile)) ? $fixtureFile : array($fixtureFile); + $i = 0; foreach($fixtureFiles as $fixtureFilePath) { $fixture = new YamlFixture($fixtureFilePath); $fixture->saveIntoDatabase(); $this->fixtures[] = $fixture; + + // backwards compatibility: Load first fixture into $this->fixture + if($i == 0) $this->fixture = $fixture; + $i++; }