public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     $name = $suite->getName();
     if (!$this->isValidClass($name)) {
         return;
     }
     $this->class = new $name();
     $this->class->setUpOnce();
 }
 public function setUpOnce()
 {
     Config::nest();
     VersionableExtensionsTest_DataObject::add_extension('SilverStripe\\ORM\\Versioning\\Versioned');
     VersionableExtensionsTest_DataObject::add_extension('VersionableExtensionsTest_Extension');
     $cfg = Config::inst();
     $cfg->update('VersionableExtensionsTest_DataObject', 'versionableExtensions', array('VersionableExtensionsTest_Extension' => array('test1', 'test2', 'test3')));
     parent::setUpOnce();
 }
 public function setUpOnce()
 {
     $this->extraDataObjects = DataObjectTest::$extra_data_objects;
     parent::setUpOnce();
 }
 public function setUpOnce()
 {
     // enable fulltext option on this table
     Config::inst()->update('DataObjectSchemaGenerationTest_IndexDO', 'create_table_options', array(MySQLSchemaManager::ID => 'ENGINE=MyISAM'));
     parent::setUpOnce();
 }