/** * @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()); }
/** * @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'); }