Skip to content

Commit 181e34b

Browse files
MAGETWO-69893: Error appears when restricted user tries to add new category from product page
- Fix static
1 parent c82f9ff commit 181e34b

File tree

1 file changed

+9
-6
lines changed
  • app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier

1 file changed

+9
-6
lines changed

app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier/CategoriesTest.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,15 @@ protected function setUp()
9797
*/
9898
protected function createModel()
9999
{
100-
return $this->objectManager->getObject(Categories::class, [
101-
'locator' => $this->locatorMock,
102-
'categoryCollectionFactory' => $this->categoryCollectionFactoryMock,
103-
'arrayManager' => $this->arrayManagerMock,
104-
'authorization' => $this->authorizationMock
105-
]);
100+
return $this->objectManager->getObject(
101+
Categories::class,
102+
[
103+
'locator' => $this->locatorMock,
104+
'categoryCollectionFactory' => $this->categoryCollectionFactoryMock,
105+
'arrayManager' => $this->arrayManagerMock,
106+
'authorization' => $this->authorizationMock
107+
]
108+
);
106109
}
107110

108111
public function testModifyData()

0 commit comments

Comments
 (0)