Example #1
0
 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());
 }
Example #2
0
 public function testRobots()
 {
     $robots = 'test_robots';
     $this->model->setRobots($robots);
     $this->assertEquals($robots, $this->model->getRobots());
 }
 /**
  * {@inheritdoc}
  */
 public function setRobots($robots)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setRobots');
     if (!$pluginInfo) {
         return parent::setRobots($robots);
     } else {
         return $this->___callPlugins('setRobots', func_get_args(), $pluginInfo);
     }
 }