private function addPropertyValuesForShortUrl()
 {
     $shortUrlAnnotator = $this->appFactory->newShortUrlAnnotator($this->getSemanticData());
     if ($shortUrlAnnotator->canUseShortUrl()) {
         $shortUrlAnnotator->addAnnotation();
     }
 }
コード例 #2
0
 public function testCanConstructShortUrlAnnotator()
 {
     $semanticData = $this->getMockBuilder('\\SMW\\SemanticData')->disableOriginalConstructor()->getMock();
     $instance = new AppFactory();
     $this->assertInstanceOf('\\SESP\\Annotator\\ShortUrlAnnotator', $instance->newShortUrlAnnotator($semanticData));
 }