public function testGetProfileUrl()
 {
     $profile = $this->author->getProfileUrl();
     $this->assertInstanceOf('\\Cekurte\\WebScrapingBundle\\Selector\\SelectorInterface', $profile);
     $this->assertEquals('article .article-header a[rel="author"]', $profile->getSelectorKey());
     $this->assertEquals(SelectorBuilder::NODE_ATTR, $profile->getSelectorType());
     $this->assertEquals('href', $profile->getSelectorAttr());
 }
 /**
  * @inheritdoc
  */
 public function getProfileUrl()
 {
     return SelectorResolver::create()->resolve($this->crawler, $this->selector->getProfileUrl())->getSingleResult();
 }