File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ public function afterFetchAvailableFiles(
9090 CategoryInterface $ category ): array
9191 {
9292 $ handles = $ this ->getLayoutProcessor ()->getAvailableHandles ();
93-
9493 return array_merge (
9594 $ result ,
9695 array_filter (
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ abstract class AbstractFrontendControllerTest extends AbstractController
5959 */
6060 protected function setUp (): void
6161 {
62- Bootstrap::getInstance ()->reinitialize ();
6362 $ this ->objectManager = Bootstrap::getObjectManager ();
6463 $ this ->layout = $ this ->objectManager ->get (LayoutInterface::class);
6564 $ this ->configWriter = $ this ->objectManager ->get (Writer::class);
@@ -74,6 +73,10 @@ protected function enableTestModuleInConfig()
7473 {
7574 $ this ->moduleStatus = $ this ->objectManager ->create (ModuleStatus::class);
7675 $ 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);
7780 }
7881
7982 /**
You can’t perform that action at this time.
0 commit comments