Skip to content

Commit 2d7cee1

Browse files
ShradddhaShradddha
authored andcommitted
AC-10621::PHPUnit 10 upgrade error: ‘RuntimeException: ObjectManager isn't initialized’
1 parent 863a572 commit 2d7cee1

File tree

1 file changed

+5
-0
lines changed
  • app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category

1 file changed

+5
-0
lines changed

app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category/EditTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Magento\Framework\Controller\Result\JsonFactory;
1818
use Magento\Framework\Event\ManagerInterface;
1919
use Magento\Framework\ObjectManagerInterface;
20+
use Magento\Framework\Registry;
2021
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
2122
use Magento\Framework\View\LayoutFactory;
2223
use Magento\Framework\View\Page\Title;
@@ -123,6 +124,10 @@ protected function setUp(): void
123124
Date::class,
124125
$this->createMock(Date::class)
125126
],
127+
[
128+
Registry::class,
129+
$this->createMock(Registry::class)
130+
],
126131
[
127132
StoreManagerInterface::class,
128133
$this->createMock(StoreManagerInterface::class)

0 commit comments

Comments
 (0)