public function testConstuctDescriptionWithContextPage() { $instance = new DescriptionProcessor(); $instance->setContextPage(DIWikiPage::newFromText(__METHOD__)); $currentDescription = new Disjunction(); $newDescription = $instance->constructDescriptionForPropertyObjectValue(new DIProperty('Foo'), 'foobar'); $this->assertInstanceOf('SMW\\Query\\Language\\Conjunction', $instance->constructConjunctiveCompoundDescriptionFrom($currentDescription, $newDescription)); }
/** * @since 2.4 * * @param DIWikiPage|null $contextPage */ public function setContextPage(DIWikiPage $contextPage = null) { $this->descriptionProcessor->setContextPage($contextPage); }