public function setUp()
 {
     parent::setUp();
     $this->pubColl = $this->_collection('public collection', TRUE);
     $this->privColl = $this->_collection('private collection', FALSE);
     $this->opt = get_option('solr_search_display_private_items');
 }
 /**
  * Create tagged items.
  */
 public function setUp()
 {
     parent::setUp();
     $this->item1 = $this->_collitem('Item 1', 'tag1');
     $this->item2 = $this->_collitem('Item 2', 'tag2');
     $this->item3 = $this->_collitem('Item 3', 'tag3');
     $this->item4 = $this->_collitem('Item 4', 'tag2,tag3');
 }
 /**
  * Create items.
  */
 public function setUp()
 {
     parent::setUp();
     $website = $this->itemTypeTable->findByName('Website');
     $dataset = $this->itemTypeTable->findByName('Dataset');
     $this->item1 = $this->_collitem('Item 1', $website);
     $this->item2 = $this->_collitem('Item 2', $website);
     $this->item3 = $this->_collitem('Item 3', $dataset);
     $this->item4 = $this->_collitem('Item 4', $dataset);
 }
 public function setUp()
 {
     parent::setUp();
     $this->_installPluginOrSkip('ExhibitBuilder');
     $this->_installPluginOrSkip('SimplePages');
     $this->mgr = new SolrSearch_Addon_Manager($this->db);
     $addons = $this->mgr->parseAll();
     $this->exhibits = $addons['exhibits'];
     $this->idxr = new SolrSearch_Addon_Indexer($this->db);
 }
 /**
  * Create collections and items.
  */
 public function setUp()
 {
     parent::setUp();
     $coll1 = $this->_collection('Collection 1');
     $coll2 = $this->_collection('Collection 2');
     $this->item1 = $this->_collitem('Item 1', $coll1);
     $this->item2 = $this->_collitem('Item 2', $coll1);
     $this->item3 = $this->_collitem('Item 3', $coll2);
     $this->item4 = $this->_collitem('Item 4', $coll2);
 }
 /**
  * Create collections and items.
  */
 public function setUp()
 {
     parent::setUp();
     // Set "Type" faceted.
     $this->fieldTable->setElementFaceted('Dublin Core', 'Type');
     // Cache the "Type" facet key.
     $type = $this->fieldTable->findByElementName('Dublin Core', 'Type');
     $this->key = $type->facetKey();
     $this->item1 = $this->_collitem('Item 1', 'type one');
     $this->item2 = $this->_collitem('Item 2', 'type one');
     $this->item3 = $this->_collitem('Item 3', 'type two');
     $this->item4 = $this->_collitem('Item 4', 'type two');
 }
 public function setUp()
 {
     parent::setUp();
     $this->elSet = new ElementSet();
     $this->elSet->record_type = "item";
     $this->elSet->name = "FacetMappingsMissing";
     $this->elSet->save();
     $elementSet = $this->db->getTable('ElementSet')->findByName('Dublin Core');
     $sql = "\n            INSERT INTO `{$this->db->Element}` (`element_set_id`, `name`, `description`)\n            VALUES (?, ?, ?)";
     $this->db->query($sql, array($this->elSet->id, 'element one', 'description one'));
     $elementTable = $this->db->getTable('Element');
     $this->el = $elementTable->findByElementSetNameAndElementName($this->elSet->name, 'element one');
 }
 /**
  * Create collections and items.
  */
 public function setUp()
 {
     parent::setUp();
     $this->_installPluginOrSkip('ExhibitBuilder');
     $this->_installPluginOrSkip('SimplePages');
     $this->i1 = $this->_item(true, 'Item 1');
     $this->i2 = $this->_item(true, 'Item 2');
     $this->e1 = $this->_exhibit(true, 'Exhibit 1', 'e1');
     $this->e2 = $this->_exhibit(true, 'Exhibit 2', 'e2');
     $this->ep1 = $this->_exhibitPage($this->e1, 'Exhibit Page 1', 'ep1');
     $this->ep2 = $this->_exhibitPage($this->e1, 'Exhibit Page 2', 'ep2');
     $this->sp1 = $this->_simplePage(true, 'Simple Page 1', 'sp1');
     $this->sp2 = $this->_simplePage(true, 'Simple Page 2', 'sp2');
 }
 /**
  * Delete any facet mappings registered when the plugin is installed.
  */
 public function setUp()
 {
     parent::setUp();
     $this->_clearFieldMappings();
 }
 /**
  * Install Simple Pages or skip the suite.
  */
 public function setUp()
 {
     parent::setUp();
     $this->_installPluginOrSkip('SimplePages');
 }
 /**
  * Install Exhibit Builder or skip the suite.
  */
 public function setUp()
 {
     parent::setUp();
     $this->_installPluginOrSkip('ExhibitBuilder');
 }
 /**
  * Create collections and items.
  */
 public function setUp()
 {
     parent::setUp();
     $this->item1 = $this->_item(true, 'Item 1');
     $this->item2 = $this->_item(true, 'Item 2');
 }
 public function setUp()
 {
     parent::setUp();
     $this->mgr = new SolrSearch_Addon_Manager($this->db);
     $this->mgr->parseAll();
 }
 /**
  * Create a facet for the Dublin Core "Title" element.
  */
 public function setUp()
 {
     parent::setUp();
     $title = $this->elementTable->findByElementSetNameAndElementName('Dublin Core', 'Title');
     $this->facet = new SolrSearchField($title);
 }