Skip to content
This repository was archived by the owner on May 27, 2023. It is now read-only.

Fixed indexer for Magento 1.13.x.x #153

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
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 @@ -61,6 +61,7 @@ public function runRequiredIndexers()
$process = $indexer->getProcessByCode($indexerCode);
if ($process) {
$process->reindexAll();
Mage::dispatchEvent($indexerCode . '_shell_reindex_after');
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions app/code/community/EcomDev/PHPUnit/Test/Case/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1977,6 +1977,8 @@ protected function reset()

$this->getResponse()->reset();
$this->getLayout()->reset();
$this->app()->resetAreas();

return $this;
}

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/EcomDev/PHPUnit/Test/Case/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public static function getModuleNameByClassName($className)
// Try to find the module name by class name
$moduleName = false;
foreach (Mage::getConfig()->getNode('modules')->children() as $module) {
if (strpos($className, $module->getName()) === 0) {
if (strpos($className, $module->getName() . '_') === 0) {
$moduleName = $module->getName();
break;
}
Expand Down
5 changes: 5 additions & 0 deletions app/code/community/EcomDev/PHPUnit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@
. ".php";
@include_once $classname;
});

// workaround for __autoload in Mage/Core/functions.php
spl_autoload_register(function ($class) {
class_alias('Varien_Object', $class);
});