public function testFormatPropertyItemOnPredefinedProperty()
 {
     $property = $this->dataItemFactory->newDIProperty('_MDAT');
     $instance = new WantedPropertiesQueryPage($this->store, $this->settings);
     $result = $instance->formatResult($this->skin, array($property, 42));
     $this->assertEmpty($result);
 }
 /**
  * @see SpecialPage::execute
  */
 public function execute($param)
 {
     $out = $this->getOutput();
     $out->setPageTitle($this->msg('wantedproperties')->text());
     $page = new WantedPropertiesQueryPage($this->getStore(), $this->getSettings());
     $page->setContext($this->getContext());
     list($limit, $offset) = $this->getLimitOffset();
     $page->doQuery($offset, $limit);
     // Ensure locally collected output data is pushed to the output!
     // ?? still needed !!
     SMWOutputs::commitToOutputPage($out);
 }
 public function testFormatResultOnNonUserDefinedProperty()
 {
     $store = $this->getMockBuilder('\\SMW\\Store')->disableOriginalConstructor()->getMockForAbstractClass();
     $skin = $this->getMockBuilder('\\Skin')->disableOriginalConstructor()->getMock();
     $setttings = Settings::newFromArray(array());
     $instance = new WantedPropertiesQueryPage($store, $setttings);
     $result = $instance->formatResult($skin, array('foo', 0));
     $this->assertInternalType('string', $result);
     $this->assertEmpty($result);
 }