protected function setUp() { parent::setUp(); $this->service = new PageService('Page'); $attributes = array('templateid' => '', 'name' => 'PHPUnit Test Page - Copy', 'pageType' => 'the_page_type_id', 'pageAttributes' => json_encode((object) array('foo' => 'bar'))); $this->testEntry = $this->service->create($this->websiteId, $attributes); }
protected function setUp() { parent::setUp(); $this->business = new CliBusiness('Cli'); // default config override $this->updateConfigModuleEnableDev(true); }
protected function setUp() { parent::setUp(); $this->config = Registry::getConfig(); $this->testMediaFilesDirectory = $this->config->media->files->directory; $this->service = new FileService($this->testMediaFilesDirectory); }
protected function setUp() { parent::setUp(); $this->service = new PageService('Page'); $attributes = array('templateid' => '', 'name' => 'PHPUnit Test Page - GetById - name', 'description' => 'PHPUnit Test Page - GetById - description', 'mediaid' => 'PHPUnit Test Page - GetById - mediaId', 'pageType' => 'the_page_type_id', 'pageAttributes' => (object) array('foo' => 'bar', 'myObject' => new \stdClass(), 'myArray' => array())); $this->testEntry = $this->service->create($this->websiteId, $attributes); }
protected function setUp() { parent::setUp(); $this->service = new PageService('Page'); $attributes = array('templateid' => '', 'name' => 'PHPUnit Test Page - Update'); $this->testEntry = $this->service->create($this->websiteId, $attributes); }
protected function setUp() { parent::setUp(); $this->business = new PageBusiness('Page'); $attributes = array('templateid' => 'TPL-create01-page-test-87jd-ju87cj2m361s-TPL', 'name' => 'PHPUnit Test Page - Update', 'parentid' => 'root', 'insertbeforeid' => null); $this->testEntry = $this->business->create($attributes, $this->websiteId); }
protected function setUp() { parent::setUp(); $this->service = new Service('User'); $attributes = array('email' => '*****@*****.**', 'lastname' => 'update test', 'firstname' => 'service user', 'gender' => 'm', 'isSuperuser' => false, 'isDeletable' => true); $this->testEntry = $this->service->create($attributes); }
protected function setUp() { parent::setUp(); $this->business = new WebsiteBusiness('Website'); $attributes = array('name' => 'PHPUnit Test Website - Update', 'description' => 'website description', 'navigation' => '[]', 'colorscheme' => '[{"id":"860ac1af-c52f-4bbc-965e-cd35533d30fe","value":"rgba(59,78,255,1)","name":"Farbe 2"}]', 'publish' => '{"host":"www.example.de","username":"******","password":"******","basedir":"","mode":"ftp"}'); $this->testEntry = $this->business->create($attributes); }
protected function setUp() { parent::setUp(); $this->business = new AlbumBusiness('Album'); $this->websiteId = 'SITE-be6e702f-10ac-4e1e-951f-307e4b8764al-SITE'; $this->albumId = 'ALBUM-be1ecf03-acc4-4fdb-add4-72ebb0878006-ALBUM'; }
public function setUp() { parent::setUp(); $this->service = new MediaService('Media'); $this->websiteId = 'SITE-ra10e89c-22af-46sf-a651-fc42dc78f7ga-SITE'; $this->albumId = 'ALBUM-ra10e89c-22af-46sf-a651-fc42dc78f7ga-ALBUM'; }
protected function setUp() { MockManager::activateWebsiteSettingsMock(true); parent::setUp(); $config = Registry::getConfig(); $this->testFilesDirectory = $config->test->files->directory; }
protected function setUp() { parent::setUp(); $this->service = new Service('Website'); $attributes = array('name' => 'PHPUnit Test Website - Update'); $this->testEntry = $this->service->create($attributes); }
protected function setUp() { parent::setUp(); $this->service = new WebsiteService('Website'); $attributes = array('name' => 'PHPUnit Test Website - Increase', 'description' => 'website description', 'navigation' => '[]', 'publish' => '{}'); $this->testEntry = $this->service->create($attributes); }
protected function setUp() { MockManager::activateWebsiteSettingsMock(true); parent::setUp(); $this->service = new WebsiteService('Website'); $attributes = array('name' => 'PHPUnit Test Website - Create', 'description' => 'website description', 'navigation' => '[]', 'publish' => '{}'); $this->testEntry = $this->service->create($attributes); }
protected function setUp() { parent::setUp(); $this->testService = new WebhostingQuotaTestWebsiteService('Website'); // reset calls and set website count $this->testService->resetPhpunitTestCalls(); // set webhosting max count quota ConfigHelper::mergeIntoConfig(array('quota' => array('webhosting' => array('maxCount' => $this->testWebhostingMaxCount)))); }
protected function setUp() { parent::setUp(); $weburl = parse_url(Registry::getBaseUrl()); $this->spaceHost = preg_replace('/\\.$/', '', $weburl['host']); $this->cfg_segmentio = Registry::getConfig()->stats->segmentio->toArray(); $this->analyticsLogFile = $this->cfg_segmentio['api_options']['filename']; FS::rmFile($this->analyticsLogFile); }
protected function setUp() { parent::setUp(); $this->testService = new WebsiteTestService('Website'); // reset calls and set website count $this->testService->restPhpunitTestCalls(); $this->testService->setPhpunitTestWebsiteCount(5); // set quota in config ConfigHelper::mergeIntoConfig(array('quota' => array('website' => array('maxCount' => 5)))); }
protected function tearDown() { if ($this->fakedImportFileToDelete !== null) { DirectoryHelper::removeFile($this->fakedImportFileToDelete); } if ($this->importUnzipDirectoryToDelete !== null) { $config = Registry::getConfig(); $testImportDirectory = $config->import->directory; DirectoryHelper::removeRecursiv($this->importUnzipDirectoryToDelete, $testImportDirectory); } parent::tearDown(); }
public function tearDown() { // remove test files foreach ($this->filesToDeleteAtTearDown as $filePath) { DirectoryHelper::removeFile($filePath); } // remove test directories foreach ($this->directoriesToDeleteAtTearDown as $directory) { DirectoryHelper::removeRecursiv($directory); } parent::tearDown(); }
public function tearDown() { ModuleWriteableMock::tearDown(); parent::tearDown(); }
protected function setUp() { parent::setUp(); $this->business = new MediaBusiness('Media'); }
protected function setUp() { parent::setUp(); $this->service = new WebsiteService('Website'); }
public function setUp() { parent::setUp(); $this->service = new TemplateService('Template'); }
public function setUp() { parent::setUp(); $this->service = new MailBuilderService(); }
protected function tearDown() { OptinTestHelper::clearMailsFromFileTransports($this->mailsFromFileTransportDirectory); parent::tearDown(); }
protected function tearDown() { $this->business->phpunitTearDown(); parent::tearDown(); }
protected function setUp() { parent::setUp(); $this->service = new PageService('Page'); }
public function setUp() { parent::setUp(); $this->service = new MediaService('Media'); }
protected function setUp() { parent::setUp(); $this->business = new Business\Reparse('Reparse'); }
protected function setUp() { parent::setUp(); $this->business = new CliBusiness('Cli'); }