File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
dev/tests/unit/Magento/FunctionalTestFramework/Util Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 1111use Magento \FunctionalTestingFramework \Config \MftfApplicationConfig ;
1212use Magento \FunctionalTestingFramework \Exceptions \TestReferenceException ;
1313use Magento \FunctionalTestingFramework \Filter \FilterList ;
14+ use Magento \FunctionalTestingFramework \ObjectManager ;
1415use Magento \FunctionalTestingFramework \Test \Objects \ActionObject ;
1516use Magento \FunctionalTestingFramework \Test \Objects \TestHookObject ;
1617use Magento \FunctionalTestingFramework \Test \Objects \TestObject ;
1718use Magento \FunctionalTestingFramework \Util \Filesystem \CestFileCreatorUtil ;
1819use Magento \FunctionalTestingFramework \Util \GenerationErrorHandler ;
20+ use Magento \FunctionalTestingFramework \Util \ModuleResolver ;
1921use Magento \FunctionalTestingFramework \Util \TestGenerator ;
2022use ReflectionProperty ;
2123use tests \unit \Util \MagentoTestCase ;
2224use tests \unit \Util \TestLoggingUtil ;
2325
2426class TestGeneratorTest extends MagentoTestCase
2527{
28+ /**
29+ * @inheritdoc
30+ */
31+ public static function setUpBeforeClass (): void
32+ {
33+ parent ::setUpBeforeClass ();
34+
35+ $ property = new ReflectionProperty (ObjectManager::class, 'instance ' );
36+ $ property ->setAccessible (true );
37+ $ property ->setValue (null );
38+
39+ $ property = new ReflectionProperty (ModuleResolver::class, 'instance ' );
40+ $ property ->setAccessible (true );
41+ $ property ->setValue (null );
42+ }
43+
2644 /**
2745 * Before method functionality.
2846 *
You can’t perform that action at this time.
0 commit comments