Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 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);
 }
Esempio n. 6
0
 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);
 }
Esempio n. 7
0
 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);
 }
Esempio n. 8
0
 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);
 }
Esempio n. 9
0
 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';
 }
Esempio n. 10
0
 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';
 }
Esempio n. 11
0
 protected function setUp()
 {
     MockManager::activateWebsiteSettingsMock(true);
     parent::setUp();
     $config = Registry::getConfig();
     $this->testFilesDirectory = $config->test->files->directory;
 }
Esempio n. 12
0
 protected function setUp()
 {
     parent::setUp();
     $this->service = new Service('Website');
     $attributes = array('name' => 'PHPUnit Test Website - Update');
     $this->testEntry = $this->service->create($attributes);
 }
Esempio n. 13
0
 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);
 }
Esempio n. 14
0
 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);
 }
Esempio n. 15
0
 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);
 }
Esempio n. 17
0
 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))));
 }
Esempio n. 18
0
 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();
 }
Esempio n. 19
0
 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();
 }
Esempio n. 20
0
 public function tearDown()
 {
     ModuleWriteableMock::tearDown();
     parent::tearDown();
 }
Esempio n. 21
0
 protected function setUp()
 {
     parent::setUp();
     $this->business = new MediaBusiness('Media');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->service = new WebsiteService('Website');
 }
Esempio n. 23
0
 public function setUp()
 {
     parent::setUp();
     $this->service = new TemplateService('Template');
 }
Esempio n. 24
0
 public function setUp()
 {
     parent::setUp();
     $this->service = new MailBuilderService();
 }
Esempio n. 25
0
 protected function tearDown()
 {
     OptinTestHelper::clearMailsFromFileTransports($this->mailsFromFileTransportDirectory);
     parent::tearDown();
 }
Esempio n. 26
0
 protected function tearDown()
 {
     $this->business->phpunitTearDown();
     parent::tearDown();
 }
Esempio n. 27
0
 protected function setUp()
 {
     parent::setUp();
     $this->service = new PageService('Page');
 }
Esempio n. 28
0
 public function setUp()
 {
     parent::setUp();
     $this->service = new MediaService('Media');
 }
Esempio n. 29
0
 protected function setUp()
 {
     parent::setUp();
     $this->business = new Business\Reparse('Reparse');
 }
Esempio n. 30
0
 protected function setUp()
 {
     parent::setUp();
     $this->business = new CliBusiness('Cli');
 }