Skip to content
Snippets Groups Projects
Commit d9dd253f authored by Andrii Kasian's avatar Andrii Kasian
Browse files

MAGETWO-55299: [Customer] Fast Save of Product Variations

     - MAGETWO-55787: Fast saving of product with high number of variations generated
parent 3fb7d58b
No related merge requests found
...@@ -51,6 +51,7 @@ class ApiDataFixture ...@@ -51,6 +51,7 @@ class ApiDataFixture
*/ */
public function startTest(\PHPUnit_Framework_TestCase $test) public function startTest(\PHPUnit_Framework_TestCase $test)
{ {
\Magento\TestFramework\Helper\Bootstrap::getInstance()->reinitialize();
/** Apply method level fixtures if thy are available, apply class level fixtures otherwise */ /** Apply method level fixtures if thy are available, apply class level fixtures otherwise */
$this->_applyFixtures($this->_getFixtures('method', $test) ?: $this->_getFixtures('class', $test)); $this->_applyFixtures($this->_getFixtures('method', $test) ?: $this->_getFixtures('class', $test));
} }
...@@ -61,6 +62,9 @@ class ApiDataFixture ...@@ -61,6 +62,9 @@ class ApiDataFixture
public function endTest() public function endTest()
{ {
$this->_revertFixtures(); $this->_revertFixtures();
/** @var $objectManager \Magento\TestFramework\ObjectManager */
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
$objectManager->get(\Magento\Eav\Model\Entity\AttributeCache::class)->clear();
} }
/** /**
......
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