Exemple #1
0
 public function setUp()
 {
     parent::setUp();
     $this->exhibit = $this->_exhibit('slug');
     $this->record = $this->_record($this->exhibit);
     $this->_logout();
 }
Exemple #2
0
 public function setUp()
 {
     parent::setUp();
     $this->_mockPresenters();
     $this->_mockExhibitWidgets();
     $this->_mockLayers();
 }
Exemple #3
0
 public function setUp()
 {
     parent::setUp();
     $this->_loginAsContributor('user1');
     $this->exhibit = $this->_exhibit();
     $this->_loginAsContributor('user2');
 }
Exemple #4
0
 public function setUp()
 {
     parent::setUp();
     $this->_loginAsContributor('user1');
     $this->_exhibit('slug1', false);
     $this->_loginAsContributor('user2');
     $this->_exhibit('slug2', false);
 }
Exemple #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));
 }
Exemple #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);
 }
Exemple #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');
 }
Exemple #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);
 }
Exemple #9
0
 public function setUp()
 {
     parent::setUp();
     $this->exhibit = $this->_exhibit('slug', false);
     $this->_logout();
 }
Exemple #10
0
 public function setUp()
 {
     parent::setUp();
     $this->item = insert_item(array('public' => true));
     $this->_logout();
 }
 public function setUp()
 {
     parent::setUp();
     $this->_mockLayers();
 }
Exemple #12
0
 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();
 }
Exemple #15
0
 public function setUp()
 {
     parent::setUp();
     $this->_loginAsContributor();
     $this->exhibit = $this->_exhibit('slug');
 }