Exemplo n.º 1
0
 public function testAddPropertyValue()
 {
     $instance = new SemanticData(DIWikiPage::newFromTitle(Title::newFromText(__METHOD__)));
     $instance->addPropertyValue('addPropertyValue', DIWikiPage::doUnserialize('Foo#0#'));
     $key = Localizer::getInstance()->getNamespaceTextById(SMW_NS_PROPERTY) . ':' . 'addPropertyValue';
     $expected = array('propertyCount' => 1, 'propertyLabels' => array($key), 'propertyValues' => array('Foo'));
     $this->semanticDataValidator->assertThatPropertiesAreSet($expected, $instance);
 }