Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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';
 }
Example #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';
 }
Example #11
0
 protected function setUp()
 {
     MockManager::activateWebsiteSettingsMock(true);
     parent::setUp();
     $config = Registry::getConfig();
     $this->testFilesDirectory = $config->test->files->directory;
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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))));
 }
Example #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();
 }
Example #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();
 }
Example #20
0
 public function tearDown()
 {
     ModuleWriteableMock::tearDown();
     parent::tearDown();
 }
Example #21
0
 protected function setUp()
 {
     parent::setUp();
     $this->business = new MediaBusiness('Media');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->service = new WebsiteService('Website');
 }
Example #23
0
 public function setUp()
 {
     parent::setUp();
     $this->service = new TemplateService('Template');
 }
Example #24
0
 public function setUp()
 {
     parent::setUp();
     $this->service = new MailBuilderService();
 }
Example #25
0
 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');
 }
Example #29
0
 protected function setUp()
 {
     parent::setUp();
     $this->business = new Business\Reparse('Reparse');
 }
Example #30
0
 protected function setUp()
 {
     parent::setUp();
     $this->business = new CliBusiness('Cli');
 }