File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ public function afterFetchAvailableFiles(
90
90
CategoryInterface $ category ): array
91
91
{
92
92
$ handles = $ this ->getLayoutProcessor ()->getAvailableHandles ();
93
-
94
93
return array_merge (
95
94
$ result ,
96
95
array_filter (
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ abstract class AbstractFrontendControllerTest extends AbstractController
59
59
*/
60
60
protected function setUp (): void
61
61
{
62
- Bootstrap::getInstance ()->reinitialize ();
63
62
$ this ->objectManager = Bootstrap::getObjectManager ();
64
63
$ this ->layout = $ this ->objectManager ->get (LayoutInterface::class);
65
64
$ this ->configWriter = $ this ->objectManager ->get (Writer::class);
@@ -74,6 +73,10 @@ protected function enableTestModuleInConfig()
74
73
{
75
74
$ this ->moduleStatus = $ this ->objectManager ->create (ModuleStatus::class);
76
75
$ this ->moduleStatus ->setIsEnabled (true , ['IntegerNet_GlobalCustomLayoutTest ' ]);
76
+
77
+ $ this ->objectManager ->removeSharedInstance (\Magento \Framework \Module \Manager::class);
78
+ $ this ->objectManager ->removeSharedInstance (\Magento \Framework \Module \ModuleList::class);
79
+ $ this ->objectManager ->removeSharedInstance (\Magento \Framework \View \Model \Layout \Merge::class);
77
80
}
78
81
79
82
/**
You can’t perform that action at this time.
0 commit comments