public function testAddRss() { $title = 'test title'; $href = 'http://test.com'; $expected = ['attributes' => 'rel="alternate" type="application/rss+xml" title="test title"']; $this->assetRepo->expects($this->once())->method('createRemoteAsset')->with($href, 'unknown')->will($this->returnValue($this->remoteAsset)); $this->pageAssets->expects($this->once())->method('add')->with('link/http://test.com', $this->remoteAsset, $expected); $this->assertInstanceOf('Magento\\Framework\\View\\Page\\Config', $this->model->addRss($title, $href)); }
/** * {@inheritdoc} */ public function addRss($title, $href) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'addRss'); if (!$pluginInfo) { return parent::addRss($title, $href); } else { return $this->___callPlugins('addRss', func_get_args(), $pluginInfo); } }