public function testValidSeoChannelContent() { $title = 'Title'; $description = 'Lorem ipsum dolor sit amet..'; $url = 'http://lorem.ipsum'; $seoMetadata = new SeoMetadata(); $seoMetadata->setTitle($title); $seoMetadata->setMetaDescription($description); $seoMetadata->setOriginalUrl($url); $seoAware = $this->getMock('Symfony\\Cmf\\Bundle\\SeoBundle\\SeoAwareInterface'); $seoAware->expects($this->once())->method('getSeoMetadata')->will($this->returnValue($seoMetadata)); $this->assertTrue($this->extractor->supports($seoAware)); $channel = new Channel(); $this->extractor->updateMetadata($seoAware, $channel); $this->assertSame($title, $channel->getTitle()); $this->assertSame($description, $channel->getDescription()); $this->assertSame($url, $channel->getLink()); }