public function setUp() { parent::setUp(); $this->exhibit = $this->_exhibit('slug'); $this->record = $this->_record($this->exhibit); $this->_logout(); }
public function setUp() { parent::setUp(); $this->_mockPresenters(); $this->_mockExhibitWidgets(); $this->_mockLayers(); }
public function setUp() { parent::setUp(); $this->_loginAsContributor('user1'); $this->exhibit = $this->_exhibit(); $this->_loginAsContributor('user2'); }
public function setUp() { parent::setUp(); $this->_loginAsContributor('user1'); $this->_exhibit('slug1', false); $this->_loginAsContributor('user2'); $this->_exhibit('slug2', false); }
/** * Create exhibit, set parameter on request. */ public function setUp() { parent::setUp(); // Create exhibit. $this->exhibit = $this->_exhibit(); // Set GET parameter. $this->request->setQuery(array('exhibit_id' => $this->exhibit->id)); }
public function setUp() { parent::setUp(); $user1 = $this->_loginAsContributor('user1'); $this->exhibit = $this->_exhibit(); $this->record1 = $this->_record($this->exhibit); $user2 = $this->_loginAsContributor('user2'); $this->record2 = $this->_record($this->exhibit); $this->_authenticateUser($user1); }
public function setUp() { parent::setUp(); $this->_mockPresenters(); $this->_mockExhibitWidgets(); $this->_mockLayers(); // Cache the image fixture path. $this->image = NL_TEST_DIR . '/mocks/image.jpg'; // Create a mock exhibit. $this->exhibit = $this->_exhibit('slug'); }
/** * Insert item type and collection, set POST data. */ public function setUp() { parent::setUp(); // Exhibit: $this->exhibit = $this->_exhibit(); // Item type: $this->type = insert_item_type(array('name' => 'Type')); // Collection: $this->collection = insert_collection(array(), array('Dublin Core' => array('Title' => array(array('text' => 'Collection', 'html' => false))))); // Query: $this->query = array('range' => '1-10', 'collection' => $this->collection->id, 'type' => $this->type->id, 'tags' => 'tag1,tag2'); // Set POST data. $this->request->setMethod('POST')->setPost($this->query); }
public function setUp() { parent::setUp(); $this->exhibit = $this->_exhibit('slug', false); $this->_logout(); }
public function setUp() { parent::setUp(); $this->item = insert_item(array('public' => true)); $this->_logout(); }
public function setUp() { parent::setUp(); $this->_mockLayers(); }
public function setUp() { parent::setUp(); $this->_mockTheme(); }
/** * Restore the current schema. */ public function tearDown() { $this->_installSchema(self::$newVersion); parent::tearDown(); }
/** * Create a mock exhibit. */ public function setUp() { parent::setUp(); // Create a default exhibit. $this->exhibit = $this->_exhibit(); }
public function setUp() { parent::setUp(); $this->_loginAsContributor(); $this->exhibit = $this->_exhibit('slug'); }