API Don't create fixtures by default

Use @database-defaults in specific scenarios or features to enforce creation.
This commit is contained in:
Ingo Schommer 2013-09-14 18:33:18 +02:00
parent 18cc924245
commit babd24f4b9

View File

@ -161,11 +161,6 @@ class TestSessionController extends Controller {
$fixtureFile = (isset($data['fixture'])) ? $data['fixture'] : null; $fixtureFile = (isset($data['fixture'])) ? $data['fixture'] : null;
if($fixtureFile) { if($fixtureFile) {
$this->loadFixtureIntoDb($fixtureFile); $this->loadFixtureIntoDb($fixtureFile);
} else {
// If no fixture, then use defaults
$dataClasses = ClassInfo::subclassesFor('DataObject');
array_shift($dataClasses);
foreach($dataClasses as $dataClass) singleton($dataClass)->requireDefaultRecords();
} }
// Mailer // Mailer