File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
dev/tests/integration/testsuite/Magento/Backend/Block Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,18 +40,18 @@ protected function setUp()
40
40
);
41
41
$ this ->configCacheType ->save ('' , \Magento \Backend \Model \Menu \Config::CACHE_MENU_OBJECT );
42
42
43
+ $ reflection = new \ReflectionClass (\Magento \Framework \Component \ComponentRegistrar::class);
44
+ $ paths = $ reflection ->getProperty ('paths ' );
45
+ $ paths ->setAccessible (true );
46
+ $ this ->backupRegistrar = $ paths ->getValue ();
47
+ $ paths ->setAccessible (false );
48
+
43
49
$ this ->menuConfig = $ this ->prepareMenuConfig ();
44
50
45
51
$ this ->blockMenu = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
46
52
\Magento \Backend \Block \Menu::class,
47
53
['menuConfig ' => $ this ->menuConfig ]
48
54
);
49
-
50
- $ reflection = new \ReflectionClass (\Magento \Framework \Component \ComponentRegistrar::class);
51
- $ paths = $ reflection ->getProperty ('paths ' );
52
- $ paths ->setAccessible (true );
53
- $ this ->backupRegistrar = $ paths ->getValue ();
54
- $ paths ->setAccessible (false );
55
55
}
56
56
57
57
/**
You can’t perform that action at this time.
0 commit comments