Example #1
0
 public function setUp()
 {
     parent::setUp();
     $this->exhibit = $this->_exhibit('slug');
     $this->record = $this->_record($this->exhibit);
     $this->_logout();
 }
Example #2
0
 public function setUp()
 {
     parent::setUp();
     $this->_mockPresenters();
     $this->_mockExhibitWidgets();
     $this->_mockLayers();
 }
Example #3
0
 public function setUp()
 {
     parent::setUp();
     $this->_loginAsContributor('user1');
     $this->exhibit = $this->_exhibit();
     $this->_loginAsContributor('user2');
 }
Example #4
0
 public function setUp()
 {
     parent::setUp();
     $this->_loginAsContributor('user1');
     $this->_exhibit('slug1', false);
     $this->_loginAsContributor('user2');
     $this->_exhibit('slug2', false);
 }
Example #5
0
 /**
  * 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));
 }
Example #6
0
 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);
 }
Example #7
0
 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');
 }
Example #8
0
 /**
  * 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);
 }
Example #9
0
 public function setUp()
 {
     parent::setUp();
     $this->exhibit = $this->_exhibit('slug', false);
     $this->_logout();
 }
Example #10
0
 public function setUp()
 {
     parent::setUp();
     $this->item = insert_item(array('public' => true));
     $this->_logout();
 }
 public function setUp()
 {
     parent::setUp();
     $this->_mockLayers();
 }
Example #12
0
 public function setUp()
 {
     parent::setUp();
     $this->_mockTheme();
 }
Example #13
0
 /**
  * Restore the current schema.
  */
 public function tearDown()
 {
     $this->_installSchema(self::$newVersion);
     parent::tearDown();
 }
Example #14
0
 /**
  * Create a mock exhibit.
  */
 public function setUp()
 {
     parent::setUp();
     // Create a default exhibit.
     $this->exhibit = $this->_exhibit();
 }
Example #15
0
 public function setUp()
 {
     parent::setUp();
     $this->_loginAsContributor();
     $this->exhibit = $this->_exhibit('slug');
 }