File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed
dev/tests/setup-integration
framework/Magento/TestFramework/App Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
+ use Magento \Framework as MF ;
8
+ use Magento \TestFramework as TF ;
9
+
7
10
return [
8
- '\Magento\Framework\Mview\TriggerCleaner ' => '\Magento\TestFramework\Mview\DummyTriggerCleaner ' ,
11
+ MF \App \AreaList::class => TF \App \AreaList::class,
12
+ MF \Mview \TriggerCleaner::class => TF \Mview \DummyTriggerCleaner::class,
9
13
];
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+ namespace Magento \TestFramework \App ;
9
+
10
+ use Magento \Framework \App \Area \FrontNameResolverFactory ;
11
+ use Magento \Framework \ObjectManagerInterface ;
12
+
13
+ /**
14
+ * Stub for \Magento\Framework\App\AreaList
15
+ */
16
+ class AreaList extends \Magento \Framework \App \AreaList
17
+ {
18
+ /**
19
+ * @param ObjectManagerInterface $objectManager
20
+ * @param FrontNameResolverFactory $resolverFactory
21
+ * @param array $areas
22
+ * @param string|null $default
23
+ */
24
+ public function __construct (
25
+ ObjectManagerInterface $ objectManager ,
26
+ FrontNameResolverFactory $ resolverFactory ,
27
+ array $ areas = [],
28
+ $ default = null
29
+ ) {
30
+ parent ::__construct ($ objectManager , $ resolverFactory , $ areas , $ default );
31
+ /**
32
+ * Then Magento is installed for setup-integration tests, di.xml files are parsed from all Magento modules,
33
+ * causing Magento\Framework\App\AreaList _areas property to be filled with arguments from disabled modules.
34
+ */
35
+ $ this ->_areas = [];
36
+ }
37
+ }
You can’t perform that action at this time.
0 commit comments