/**
  * Adds tests sql data to database.
  *
  * @param string $sTestSuitePath
  */
 public function addTestData($sTestSuitePath)
 {
     parent::addTestData($sTestSuitePath);
     $editionSelector = new EditionSelector();
     if ($editionSelector->isEnterprise()) {
         $testSqlPathProvider = new TestSqlPathProvider(new EditionSelector(), $this->getTestConfig()->getShopPath());
         $sTestSuitePath = realpath($testSqlPathProvider->getDataPathBySuitePath($sTestSuitePath));
         $sFileName = $sTestSuitePath . '/demodata_' . SHOP_EDITION . '.sql';
         if (file_exists($sFileName)) {
             $this->importSql($sFileName);
         }
         if (isSUBSHOP && file_exists($sTestSuitePath . '/demodata_EE_mall.sql')) {
             $this->importSql($sTestSuitePath . '/demodata_EE_mall.sql');
         }
     }
 }
 /**
  * When oxConfigFile is not registered in registry (happens during setup), it should be created on the fly.
  */
 public function testForcingEditionByConfigWhenNotRegistered()
 {
     $path = $this->createFile('config.inc.php', '<?php $this->edition = "EE";');
     $this->setConfigParam('sShopDir', dirname($path));
     $configFile = oxRegistry::get('oxConfigFile');
     oxRegistry::set('oxConfigFile', null);
     $editionSelector = new EditionSelector();
     $this->assertTrue($editionSelector->isEnterprise());
     $this->assertFalse($editionSelector->isCommunity());
     $this->assertFalse($editionSelector->isProfessional());
     oxRegistry::set('oxConfigFile', $configFile);
 }