File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed
dev/tests/unit/Magento/FunctionalTestFramework/Util
src/Magento/FunctionalTestingFramework/Test/Handlers Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,6 @@ public static function setUpBeforeClass(): void
51
51
protected function setUp (): void
52
52
{
53
53
TestLoggingUtil::getInstance ()->setMockLoggingUtil ();
54
- // Used to mock initTestData method running.
55
- $ shouldSkipInitTestDataProperty = new ReflectionProperty (TestObjectHandler::class, 'shouldSkipInitTestData ' );
56
- $ shouldSkipInitTestDataProperty ->setAccessible (true );
57
- $ shouldSkipInitTestDataProperty ->setValue (true );
58
54
}
59
55
60
56
/**
@@ -65,10 +61,6 @@ protected function setUp(): void
65
61
protected function tearDown (): void
66
62
{
67
63
GenerationErrorHandler::getInstance ()->reset ();
68
-
69
- $ shouldSkipInitTestDataProperty = new ReflectionProperty (TestObjectHandler::class, 'shouldSkipInitTestData ' );
70
- $ shouldSkipInitTestDataProperty ->setAccessible (true );
71
- $ shouldSkipInitTestDataProperty ->setValue (false );
72
64
}
73
65
74
66
/**
Original file line number Diff line number Diff line change @@ -44,13 +44,6 @@ class TestObjectHandler implements ObjectHandlerInterface
44
44
*/
45
45
private $ tests = [];
46
46
47
- /**
48
- * Check if initTestData method should be skipped during object initialization.
49
- *
50
- * @var boolean
51
- */
52
- private static $ shouldSkipInitTestData = false ;
53
-
54
47
/**
55
48
* Instance of ObjectExtensionUtil class
56
49
*
@@ -69,10 +62,7 @@ public static function getInstance($validateAnnotations = true)
69
62
{
70
63
if (!self ::$ testObjectHandler ) {
71
64
self ::$ testObjectHandler = new TestObjectHandler ();
72
-
73
- if (!self ::$ shouldSkipInitTestData ) {
74
- self ::$ testObjectHandler ->initTestData ($ validateAnnotations );
75
- }
65
+ self ::$ testObjectHandler ->initTestData ($ validateAnnotations );
76
66
}
77
67
78
68
return self ::$ testObjectHandler ;
You can’t perform that action at this time.
0 commit comments