/** * `getElement` should return the parent element. */ public function testParentElement() { $title = $this->elementTable->findByElementSetNameAndElementName('Dublin Core', 'Title'); $facet = new SolrSearchField($title); // Should return the parent element. $this->assertEquals($title->id, $facet->getElement()->id); }