Skip to content

Instantly share code, notes, and snippets.

View athopen's full-sized avatar
👷‍♂️

Andreas Penz athopen

👷‍♂️
View GitHub Profile
@athopen
athopen / gist:9a5deebfa0922f318971
Last active August 29, 2015 14:02
Mock getProcessesForReindex() in Mage_Index_Block_Adminhtml_Notifications to prevent the following Exception: Zend_Db_Select_Exception: You cannot define a correlation name 'e' more than once
/**
* Created by Andreas Penz.
* Date: 24.06.14
* Time: 17:18
*/
protected function mockNotifications()
{
$mock = $this->getBlockMock('index/adminhtml_notifications', array('getProcessesForReindex'));
$mock->expects($this->any())