File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
integration/framework/Magento/TestFramework
setup-integration/framework/Magento/TestFramework Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -363,8 +363,6 @@ public function initialize($overriddenParams = [])
363
363
Helper \Bootstrap::setObjectManager ($ objectManager );
364
364
$ this ->initLogger ();
365
365
$ sequenceBuilder = $ objectManager ->get (\Magento \TestFramework \Db \Sequence \Builder::class);
366
- /** @var \Magento\TestFramework\Db\DynamicTables $dynamicTables */
367
- $ dynamicTables = $ objectManager ->get (\Magento \TestFramework \Db \DynamicTables::class);
368
366
$ objectManager ->addSharedInstance ($ sequenceBuilder , \Magento \SalesSequence \Model \Builder::class);
369
367
370
368
$ objectManagerConfiguration = [
@@ -421,11 +419,21 @@ public function initialize($overriddenParams = [])
421
419
$ sequence = $ objectManager ->get (\Magento \TestFramework \Db \Sequence::class);
422
420
$ sequence ->generateSequences ();
423
421
}
424
- $ dynamicTables -> createTables ();
422
+ $ this -> createDynamicTables ();
425
423
$ objectManager ->create (\Magento \TestFramework \Config::class, ['configPath ' => $ this ->globalConfigFile ])
426
424
->rewriteAdditionalConfig ();
427
425
}
428
426
427
+ /**
428
+ * Create dynamic tables
429
+ */
430
+ protected function createDynamicTables ()
431
+ {
432
+ /** @var \Magento\TestFramework\Db\DynamicTables $dynamicTables */
433
+ $ dynamicTables = Helper \Bootstrap::getObjectManager ()->get (\Magento \TestFramework \Db \DynamicTables::class);
434
+ $ dynamicTables ->createTables ();
435
+ }
436
+
429
437
/**
430
438
* Reset and initialize again an already installed application
431
439
*
Original file line number Diff line number Diff line change @@ -34,4 +34,11 @@ public function run()
34
34
{
35
35
throw new \Exception ("Can't start application. " );
36
36
}
37
+
38
+ /**
39
+ * Create dynamic tables
40
+ */
41
+ protected function createDynamicTables ()
42
+ {
43
+ }
37
44
}
You can’t perform that action at this time.
0 commit comments