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 11
11
use Magento \FunctionalTestingFramework \Config \MftfApplicationConfig ;
12
12
use Magento \FunctionalTestingFramework \Exceptions \TestReferenceException ;
13
13
use Magento \FunctionalTestingFramework \Filter \FilterList ;
14
+ use Magento \FunctionalTestingFramework \ObjectManager ;
14
15
use Magento \FunctionalTestingFramework \Test \Objects \ActionObject ;
15
16
use Magento \FunctionalTestingFramework \Test \Objects \TestHookObject ;
16
17
use Magento \FunctionalTestingFramework \Test \Objects \TestObject ;
17
18
use Magento \FunctionalTestingFramework \Util \Filesystem \CestFileCreatorUtil ;
18
19
use Magento \FunctionalTestingFramework \Util \GenerationErrorHandler ;
20
+ use Magento \FunctionalTestingFramework \Util \ModuleResolver ;
19
21
use Magento \FunctionalTestingFramework \Util \TestGenerator ;
20
22
use ReflectionProperty ;
21
23
use tests \unit \Util \MagentoTestCase ;
22
24
use tests \unit \Util \TestLoggingUtil ;
23
25
24
26
class TestGeneratorTest extends MagentoTestCase
25
27
{
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
+
26
44
/**
27
45
* Before method functionality.
28
46
*
You can’t perform that action at this time.
0 commit comments