Example #1
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 #2
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 #3
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 #4
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 #5
0
 protected function setUp()
 {
     MockManager::activateWebsiteSettingsMock(true);
     parent::setUp();
     $config = Registry::getConfig();
     $this->testFilesDirectory = $config->test->files->directory;
 }
Example #6
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 #7
0
 protected function setUp()
 {
     parent::setUp();
     // reset delete lists
     $this->filesToDeleteAtTearDown = array();
     $this->directoriesToDeleteAtTearDown = array();
 }
Example #8
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 #9
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);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->config = Registry::getConfig();
     $this->testMediaFilesDirectory = $this->config->media->files->directory;
     $this->service = new FileService($this->testMediaFilesDirectory);
 }
Example #11
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 #12
0
 protected function setUp()
 {
     parent::setUp();
     $this->business = new CliBusiness('Cli');
     // default config override
     $this->updateConfigModuleEnableDev(true);
 }
Example #13
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 #14
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 #15
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 #16
0
 protected function setUp()
 {
     parent::setUp();
     $this->markTestSkipped('Disabled because of memory problems');
     // activate
     Registry::getConfig()->screens->activ = 'yes';
     $this->business = new ScreenshotBusiness('Screenshot');
     $this->websiteId = 'SITE-renderer-site-test-1234-mjsncgmjszt1-SITE';
 }
Example #17
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))));
 }
Example #18
0
 public function setUp()
 {
     parent::setUp();
     ModuleWriteableMock::setUp();
     MockManager::setDaoCreate('Module', function ($daoName, $daoType) {
         return new ModuleWriteableMock();
     });
     $this->service = new ModulService('Modul');
 }
 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 #20
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))));
 }
 protected function setUp()
 {
     parent::setUp();
     ModuleWriteableMock::setUp();
     MockManager::setDaoCreate('Modul', function ($daoName, $daoType) {
         return new ModuleWriteableMock();
     });
     // reset delete lists
     $this->filesToDeleteAtTearDown = array();
     $this->directoriesToDeleteAtTearDown = array();
 }
Example #22
0
 protected function setUp()
 {
     parent::setUp();
     $this->business = new MediaBusiness('Media');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->service = new WebsiteService('Website');
 }
Example #24
0
 public function setUp()
 {
     parent::setUp();
     $this->service = new TemplateService('Template');
 }
Example #25
0
 public function setUp()
 {
     parent::setUp();
     $this->service = new MailBuilderService();
 }
Example #26
0
 protected function setUp()
 {
     parent::setUp();
     OptinTestHelper::clearMailsFromFileTransports($this->mailsFromFileTransportDirectory);
     $this->business = new CliBusiness('Cli');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->business = new TestableExportBusiness('Export');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->service = new PageService('Page');
 }
 public function setUp()
 {
     parent::setUp();
     $this->service = new MediaService('Media');
 }
Example #30
0
 protected function setUp()
 {
     parent::setUp();
     $this->business = new Business\Reparse('Reparse');
 }