/** * @covers Mage_Captcha_Model_Zend::getImgDir * @covers Mage_Captcha_Helper_Data::getImgDir */ public function testGetImgDir() { $captchaTmpDir = Magento_Test_Environment::getInstance()->getTmpDir() . DIRECTORY_SEPARATOR . 'captcha'; $option = $this->_getOptionStub(); $option->expects($this->once())->method('getDir')->will($this->returnValue($captchaTmpDir)); $this->_object->setOption($option); $this->assertEquals($this->_object->getImgDir(), $captchaTmpDir . DIRECTORY_SEPARATOR . 'captcha' . DIRECTORY_SEPARATOR . 'base' . DIRECTORY_SEPARATOR); }
/** * Get captcha image directory * * @return string */ public function getImgDir() { return $this->_helper->getImgDir(); }