示例#1
0
 /**
  * @covers Mage_Adminhtml_Block_Page_System_Config_Robots_Reset::getRobotsDefaultCustomInstructions
  */
 public function testGetRobotsDefaultCustomInstructions()
 {
     $expectedInstructions = 'User-agent: *';
     $this->_mockRobotsHelper->expects($this->once())->method('getRobotsDefaultCustomInstructions')->will($this->returnValue($expectedInstructions));
     $this->assertEquals($expectedInstructions, $this->_resetRobotsBlock->getRobotsDefaultCustomInstructions());
 }
示例#2
0
 /**
  * @covers Mage_Page_Helper_RobotsTest::getRobotsDefaultCustomInstructions
  */
 public function testGetRobotsDefaultCustomInstructions()
 {
     $this->assertStringEqualsFile(__DIR__ . '/../_files/robots.txt', $this->_helper->getRobotsDefaultCustomInstructions(), 'robots.txt default custom instructions are invalid');
 }