Skip to content

Commit ab65056

Browse files
committed
fix unit test
1 parent 5114f2e commit ab65056

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use Magento\Backend\Model\Auth\Session;
1212
use Magento\Catalog\Model\ResourceModel\Category\Collection as CategoryCollection;
1313
use Magento\Catalog\Model\ResourceModel\Category\CollectionFactory as CategoryCollectionFactory;
14-
use Magento\Framework\App\CacheInterface;
1514
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Categories;
15+
use Magento\Framework\App\CacheInterface;
1616
use Magento\Framework\AuthorizationInterface;
1717
use Magento\Framework\DB\Helper as DbHelper;
1818
use Magento\Framework\UrlInterface;
@@ -91,6 +91,9 @@ protected function setUp(): void
9191
$this->categoryCollectionMock->expects($this->any())
9292
->method('addAttributeToSelect')
9393
->willReturnSelf();
94+
$this->categoryCollectionMock->expects($this->any())
95+
->method('addAttributeToSort')
96+
->willReturnSelf();
9497
$this->categoryCollectionMock->expects($this->any())
9598
->method('addAttributeToFilter')
9699
->willReturnSelf();

0 commit comments

Comments
 (0)