Skip to content

Commit db9c6d6

Browse files
ShradddhaShradddha
authored andcommitted
AC-10621::PHPUnit 10 upgrade error: ‘RuntimeException: ObjectManager isn't initialized’
1 parent 858d9d3 commit db9c6d6

File tree

1 file changed

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

1 file changed

+0
-20
lines changed

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -119,26 +119,6 @@ protected function setUp(): void
119119
{
120120
$this->objectManager = new ObjectManager($this);
121121

122-
$objects = [
123-
[
124-
Date::class,
125-
$this->createMock(Date::class)
126-
],
127-
[
128-
Registry::class,
129-
$this->createMock(Registry::class)
130-
],
131-
[
132-
StoreManagerInterface::class,
133-
$this->createMock(StoreManagerInterface::class)
134-
],
135-
[
136-
Config::class,
137-
$this->createMock(Config::class)
138-
]
139-
];
140-
$this->objectManager->prepareObjectManager($objects);
141-
142122
$this->categoryMock = $this->createPartialMock(
143123
Category::class,
144124
[

0 commit comments

Comments
 (0)