Skip to content

Commit 62eb3b4

Browse files
committed
MAGETWO-62253: Refactor code to remove unserialize
- fixed integration tests
1 parent 212c93a commit 62eb3b4

File tree

1 file changed

+6
-6
lines changed
  • dev/tests/integration/testsuite/Magento/Backend/Block

1 file changed

+6
-6
lines changed

dev/tests/integration/testsuite/Magento/Backend/Block/MenuTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ protected function setUp()
4040
);
4141
$this->configCacheType->save('', \Magento\Backend\Model\Menu\Config::CACHE_MENU_OBJECT);
4242

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+
4349
$this->menuConfig = $this->prepareMenuConfig();
4450

4551
$this->blockMenu = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
4652
\Magento\Backend\Block\Menu::class,
4753
['menuConfig' => $this->menuConfig]
4854
);
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);
5555
}
5656

5757
/**

0 commit comments

Comments
 (0)