public function testRobotsAdminhtml() { $this->areaResolverMock->expects($this->once())->method('getAreaCode')->willReturn('adminhtml'); $robots = 'test_robots'; $this->model->setRobots($robots); $this->assertEquals('NOINDEX,NOFOLLOW', $this->model->getRobots()); }
public function testRobotsEmpty() { $expectedData = 'default_robots'; $this->scopeConfig->expects($this->once())->method('getValue')->with( 'design/search_engine_robots/default_robots', 'store' ) ->will($this->returnValue('default_robots')); $this->assertEquals($expectedData, $this->model->getRobots()); }
/** * {@inheritdoc} */ public function getRobots() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getRobots'); if (!$pluginInfo) { return parent::getRobots(); } else { return $this->___callPlugins('getRobots', func_get_args(), $pluginInfo); } }