Beispiel #1
0
 protected function setUp()
 {
     parent::setUp();
     Category::add('collection');
     Page::addHomePage();
     PageTemplate::add('full', 'Full');
     PageType::add(array('handle' => 'basic', 'name' => 'Basic'));
 }
Beispiel #2
0
 protected function setUp()
 {
     parent::setUp();
     $this->installAttributeCategoryAndObject();
     AttributeType::add('boolean', 'Boolean');
     AttributeType::add('textarea', 'Textarea');
     AttributeType::add('text', 'text');
     foreach ($this->keys as $akHandle => $args) {
         $args['akHandle'] = $akHandle;
         $type = AttributeType::getByHandle($args['type']);
         $this->keys[] = call_user_func_array(array($this->getAttributeKeyClass(), 'add'), array($type, $args));
     }
 }
 protected function setUp()
 {
     parent::setUp();
     $thumbnailType = new \Concrete\Core\File\Image\Thumbnail\Type\Type();
     $thumbnailType->requireType();
     $thumbnailType->setName(t('File Manager Thumbnails'));
     $thumbnailType->setHandle(Config::get('concrete.icons.file_manager_listing.handle'));
     $thumbnailType->setWidth(Config::get('concrete.icons.file_manager_listing.width'));
     $thumbnailType->setHeight(Config::get('concrete.icons.file_manager_listing.height'));
     $thumbnailType->save();
     $thumbnailType = new \Concrete\Core\File\Image\Thumbnail\Type\Type();
     $thumbnailType->requireType();
     $thumbnailType->setName(t('File Manager Detail Thumbnails'));
     $thumbnailType->setHandle(Config::get('concrete.icons.file_manager_detail.handle'));
     $thumbnailType->setWidth(Config::get('concrete.icons.file_manager_detail.width'));
     $thumbnailType->save();
     $this->cleanup();
 }
 public function setUp()
 {
     \Core::forgetInstance('url/canonical');
     return parent::setUp();
 }
 public function setUp()
 {
     parent::setUp();
     Category::add('user');
 }
 public function setUp()
 {
     parent::setUp();
     $this->loader = new DatabaseLoader();
 }
Beispiel #7
0
 protected function setUp()
 {
     parent::setUp();
     Category::add('user');
 }
 public function setUp()
 {
     parent::setUp();
     $this->saver = new DatabaseSaver();
 }