IvanChepurnyi/EcomDev_PHPUnit — pull request #22 by tenerd (2012-02-10 09:28:42+00:00)
Title: removed auto appending '/data' to helper mocking.

Hi, when i tried to mock Mage::helper('company_module') with $this->replaceByMock('helper', 'company_module', $helperMock), it appended in '/data' to class alias so it replaced key '_helper/company_module/data' in Mage registry with my test mock. But original Mage::helper('company_module') requests key without '/data' suffix ('_helper/company_module'), so it still returns unwanted original class instead of mock.
So I removed auto appending '/data' to helper class. I think it should be on developer (tester) to use right class alias or other solution is to replace both class aliases ('_helper/company_module/data' and '_helper/company_module') with mock.