EcomDev_PHPUnit icon indicating copy to clipboard operation
EcomDev_PHPUnit copied to clipboard

Mocking does not work on helper

Open ScreamingDev opened this issue 11 years ago • 0 comments

No "data" is added. Rather do "get_class(Mage::helper(...)) than finding it out by anything else.

\Mage_Core_Model_Config::getHelperClassName will add data and that is used by "mage::helper"

your \EcomDev_PHPUnit_Test_Case::getGroupedClassName and every previous just ignores it and adds no "/data".

So the class will be "Acme_Extension_Helper" which is obviously wrong.

ScreamingDev avatar Sep 12 '13 19:09 ScreamingDev