예제 #1
0
 protected function setUp()
 {
     MockManager::activateWebsiteSettingsMock(true);
     MockManager::activateModuleMock(true);
     MockManager::activatePackageMock(true);
     parent::setUp();
 }
예제 #2
0
 protected function tearDown()
 {
     $exportDirNames = array('Export_Test_Website_1_module_1306738492', 'test_export_0_modules', 'test_export_0_modules_album_id', 'Export_Test_Website_1_module_1306759604', 'Export_Test_Website_1_module_1306760005/', 'Export_Test_Website_1_module_1306760108', 'test_export_0_website');
     foreach ($exportDirNames as $dirname) {
         $exportDir = \Seitenbau\Registry::getConfig()->export->directory . DIRECTORY_SEPARATOR . $dirname . DIRECTORY_SEPARATOR;
         $this->removeDir($exportDir);
     }
     parent::tearDown();
 }
예제 #3
0
 protected function setUp()
 {
     parent::setUp();
     $this->config = Registry::getConfig();
     $renderTestDir = $this->config->test->response->render->directory;
     $renderTestOutputDir = $this->config->test->output->response->render->directory;
     $this->testDirWithResultFiles = $renderTestDir;
     $this->testOutputDir = $renderTestOutputDir;
 }
예제 #4
0
 protected function tearDown()
 {
     $exportDirNames = array('test_export_0_modules', 'test_export_0_modules_album_id', 'test_export_0_pages', 'test_export_0_templates', 'test_export_0_templates_with_album', 'test_export_0_templates_with_usergroup', 'test_export_0_website', 'test_export_0_website_with_album', 'Export_Test_Website_1_module_1306501297');
     foreach ($exportDirNames as $dirname) {
         $exportDir = \Seitenbau\Registry::getConfig()->export->directory . DIRECTORY_SEPARATOR . $dirname . DIRECTORY_SEPARATOR;
         $this->removeDir($exportDir);
     }
     parent::tearDown();
 }
예제 #5
0
 protected function tearDown()
 {
     $this->clearFakeUpload();
     $uploadDirNames = array('SITE-ra10e8ul-11af-46cd-a651-fc42dc78feue-SITE', 'SITE-ra10e8ul-11af-46cd-a651-fc42dc78fe50-SITE');
     foreach ($uploadDirNames as $dirname) {
         $uploadDir = \Seitenbau\Registry::getConfig()->media->files->directory . DIRECTORY_SEPARATOR . $dirname . DIRECTORY_SEPARATOR;
         $this->removeDir($uploadDir);
     }
     parent::tearDown();
 }
예제 #6
0
 public function tearDown()
 {
     if (count($this->deleteFiles) > 0) {
         foreach ($this->deleteFiles as $file) {
             if (file_exists($file)) {
                 unlink($file);
             }
         }
     }
     parent::tearDown();
 }
예제 #7
0
 protected function setUp()
 {
     parent::setUp();
     $this->moduleService = new ModulService('Modul');
 }
예제 #8
0
 protected function tearDown()
 {
     $this->getDbHelper()->markAsDirty();
     parent::tearDown();
 }
예제 #9
0
 protected function tearDown()
 {
     $this->deactivateGroupCheck();
     parent::tearDown();
 }
예제 #10
0
 protected function setUp()
 {
     parent::setUp();
     $this->userAttr = array('email' => '*****@*****.**', 'lastname' => 'last', 'firstname' => 'first', 'gender' => 'm', 'language' => 'en-US', 'password' => '****************', 'superuser' => false);
 }
예제 #11
0
 protected function tearDown()
 {
     OptinTestHelper::clearMailsFromFileTransports($this->mailsFromFileTransportDirectory);
     parent::tearDown();
 }
예제 #12
0
파일: CopyTest.php 프로젝트: rukzuk/rukzuk
 public function tearDown()
 {
     ModuleWriteableMock::tearDown();
     parent::tearDown();
 }
예제 #13
0
파일: EditTest.php 프로젝트: rukzuk/rukzuk
 protected function setUp()
 {
     parent::setUp();
     $this->userAttr = array('id' => 'USER-0a67e2c2-1175-45e9-bcbd-a25cee8a74c1-USER', 'email' => '*****@*****.**', 'lastname' => 'last', 'firstname' => 'first', 'gender' => 'm', 'language' => 'en-US', 'password' => '****************', 'superuser' => false);
 }
예제 #14
0
 protected function tearDown()
 {
     DirectoryHelper::clearLatchDirectory();
     parent::tearDown();
 }
예제 #15
0
파일: SendTest.php 프로젝트: rukzuk/rukzuk
 protected function tearDown()
 {
     $this->deleteFilesInOutputDir();
     parent::tearDown();
 }