Commit 4cd00ef8 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

+ Added possibility for clearing tables in fixtures without specifying its rows

parent b81f9fc5
...@@ -280,7 +280,9 @@ class EcomDev_PHPUnit_Model_Fixture extends Mage_Core_Model_Abstract ...@@ -280,7 +280,9 @@ class EcomDev_PHPUnit_Model_Fixture extends Mage_Core_Model_Abstract
foreach ($tables as $tableEntity => $data) { foreach ($tables as $tableEntity => $data) {
$this->getResource()->cleanTable($tableEntity); $this->getResource()->cleanTable($tableEntity);
$this->getResource()->loadTableData($tableEntity, $data); if (!empty($data)) {
$this->getResource()->loadTableData($tableEntity, $data);
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment