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