File tree 1 file changed +4
-0
lines changed
dev/tests/api-functional/framework/Magento/TestFramework/Annotation
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ public function __construct($fixtureBaseDir)
51
51
*/
52
52
public function startTest (\PHPUnit_Framework_TestCase $ test )
53
53
{
54
+ \Magento \TestFramework \Helper \Bootstrap::getInstance ()->reinitialize ();
54
55
/** Apply method level fixtures if thy are available, apply class level fixtures otherwise */
55
56
$ this ->_applyFixtures ($ this ->_getFixtures ('method ' , $ test ) ?: $ this ->_getFixtures ('class ' , $ test ));
56
57
}
@@ -61,6 +62,9 @@ public function startTest(\PHPUnit_Framework_TestCase $test)
61
62
public function endTest ()
62
63
{
63
64
$ 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 ();
64
68
}
65
69
66
70
/**
You can’t perform that action at this time.
0 commit comments