Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ public function it_returns_an_empty_array_when_no_routes_are_configured()
// We have to reset the routes in order to run this test
$keyRoutes = Studioforty9_Recaptcha_Helper_Data::MODULE_KEY_ROUTES;
$oldRoutes = Mage::getStoreConfig($keyRoutes);
Mage::app()->getStore(0)->setConfig($keyRoutes, ',,,');
Mage::app()->getStore()->setConfig($keyRoutes, ',,,');

$routes = $this->helper->getEnabledRoutes();

$this->assertInternalType('array', $routes);
$this->assertEmpty($routes);

Mage::app()->getStore(0)->setConfig($keyRoutes, $oldRoutes);
Mage::app()->getStore()->setConfig($keyRoutes, $oldRoutes);
}
}