|
10 | 10 | use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Categories; |
11 | 11 | use Magento\Catalog\Model\ResourceModel\Category\CollectionFactory as CategoryCollectionFactory; |
12 | 12 | use Magento\Catalog\Model\ResourceModel\Category\Collection as CategoryCollection; |
13 | | -use Magento\Catalog\Model\ResourceModel\Category\CollectionFactory as CategoryCollectionFactory; |
14 | | -use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Categories; |
15 | 13 | use Magento\Framework\AuthorizationInterface; |
16 | 14 | use Magento\Framework\DB\Helper as DbHelper; |
17 | 15 | use Magento\Framework\UrlInterface; |
18 | 16 | use Magento\Store\Model\Store; |
19 | | -use Magento\Framework\AuthorizationInterface; |
20 | 17 | use Magento\Backend\Model\Auth\Session; |
21 | 18 | use Magento\Authorization\Model\Role; |
22 | 19 | use Magento\User\Model\User; |
| 20 | +use PHPUnit\Framework\MockObject\MockObject; |
23 | 21 |
|
24 | 22 | /** |
25 | | - * Class CategoriesTest |
26 | | - * |
27 | 23 | * @SuppressWarnings(PHPMD.CouplingBetweenObjects) |
28 | 24 | */ |
29 | 25 | class CategoriesTest extends AbstractModifierTest |
@@ -59,7 +55,7 @@ class CategoriesTest extends AbstractModifierTest |
59 | 55 | private $authorizationMock; |
60 | 56 |
|
61 | 57 | /** |
62 | | - * @var \Magento\Backend\Model\Auth\Session|\PHPUnit\Framework\MockObject\MockObject |
| 58 | + * @var Session|MockObject |
63 | 59 | */ |
64 | 60 | private $sessionMock; |
65 | 61 |
|
@@ -88,7 +84,6 @@ protected function setUp(): void |
88 | 84 | ->setMethods(['getUser']) |
89 | 85 | ->disableOriginalConstructor() |
90 | 86 | ->getMock(); |
91 | | - |
92 | 87 | $this->categoryCollectionFactoryMock->expects($this->any()) |
93 | 88 | ->method('create') |
94 | 89 | ->willReturn($this->categoryCollectionMock); |
|
0 commit comments