Skip to content

Instantly share code, notes, and snippets.

@behrendtio
Created September 23, 2011 08:54
Show Gist options
  • Save behrendtio/1236977 to your computer and use it in GitHub Desktop.
Save behrendtio/1236977 to your computer and use it in GitHub Desktop.
Ecomdev_PHPUnit Error
<?php
// PHP Fatal error: Call to a member function getFrontNameByRoute() on a non-object in /var/www/magento-testing/magento/app/code/core/Mage/Core/Controller/Varien/Front.php on line 199
// Seems like $routesinfo does not contain admin and standard
// Mage_Core_Controller_Varien_Front
// This hack would work:
$routersInfo = Mage::app()->getConfig()->getNode('default/web/routers')->asArray();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment