Skip to content

Commit 863a572

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

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Magento\Framework\App\RequestInterface;
2121
use Magento\Framework\App\ResponseInterface;
2222
use Magento\Framework\Event\ManagerInterface;
23-
use Magento\Framework\Registry;
2423
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
2524
use Magento\Store\Model\StoreManagerInterface;
2625
use PHPUnit\Framework\MockObject\MockObject;
@@ -56,10 +55,6 @@ protected function setUp(): void
5655
StoreManagerInterface::class,
5756
$this->createMock(StoreManagerInterface::class)
5857
],
59-
[
60-
Registry::class,
61-
$this->createMock(Registry::class)
62-
],
6358
[
6459
Config::class,
6560
$this->createMock(Config::class)

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
use PHPUnit\Framework\MockObject\MockObject;
2727
use PHPUnit\Framework\TestCase;
2828
use Magento\Framework\Stdlib\DateTime\Filter\Date;
29-
use Magento\Framework\Registry;
3029
use Magento\Cms\Model\Wysiwyg\Config;
3130

3231
/**
@@ -128,10 +127,6 @@ protected function setUp(): void
128127
StoreManagerInterface::class,
129128
$this->createMock(StoreManagerInterface::class)
130129
],
131-
[
132-
Registry::class,
133-
$this->createMock(Registry::class)
134-
],
135130
[
136131
Config::class,
137132
$this->createMock(Config::class)

0 commit comments

Comments
 (0)