/**
  * @see PropertyAnnotatorDecorator::addPropertyValues
  */
 protected function addPropertyValues()
 {
     if (!$this->redirectTargetFinder->hasRedirectTarget()) {
         return;
     }
     $this->getSemanticData()->addPropertyObjectValue(new DIProperty('_REDI'), DIWikiPage::newFromTitle($this->redirectTargetFinder->getRedirectTarget()));
 }
 /**
  * @dataProvider redirectTextProvider
  */
 public function testInjectedRedirectTargetOverridesTextFinder($text)
 {
     $directRedirectTarget = Title::newFromText('Foo');
     $instance = new RedirectTargetFinder();
     $instance->setRedirectTarget($directRedirectTarget);
     $instance->findRedirectTargetFromText($text);
     $this->assertTrue($instance->hasRedirectTarget());
     $this->assertEquals($directRedirectTarget, $instance->getRedirectTarget());
 }