Skip to content

Commit d9dd253

Browse files
committed
MAGETWO-55299: [Customer] Fast Save of Product Variations
- MAGETWO-55787: Fast saving of product with high number of variations generated
1 parent 3fb7d58 commit d9dd253

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/Annotation/ApiDataFixture.php

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function __construct($fixtureBaseDir)
5151
*/
5252
public function startTest(\PHPUnit_Framework_TestCase $test)
5353
{
54+
\Magento\TestFramework\Helper\Bootstrap::getInstance()->reinitialize();
5455
/** Apply method level fixtures if thy are available, apply class level fixtures otherwise */
5556
$this->_applyFixtures($this->_getFixtures('method', $test) ?: $this->_getFixtures('class', $test));
5657
}
@@ -61,6 +62,9 @@ public function startTest(\PHPUnit_Framework_TestCase $test)
6162
public function endTest()
6263
{
6364
$this->_revertFixtures();
65+
/** @var $objectManager \Magento\TestFramework\ObjectManager */
66+
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
67+
$objectManager->get(\Magento\Eav\Model\Entity\AttributeCache::class)->clear();
6468
}
6569

6670
/**

0 commit comments

Comments
 (0)