Skip to content

Commit 1128446

Browse files
committed
Adjusting Unit Test
1 parent 69c9a63 commit 1128446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Api/SearchCriteria/CollectionProcessor/FilterProcessor/ProductCategoryFilterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testApply()
4040

4141
$collectionMock->expects($this->once())
4242
->method('addCategoriesFilter')
43-
->with(['in' => ['value']]);
43+
->with(['condition' => ['value']]);
4444

4545
$this->assertTrue($this->model->apply($filterMock, $collectionMock));
4646
}
@@ -66,7 +66,7 @@ public function testApplyWithoutCondition()
6666

6767
$collectionMock->expects($this->once())
6868
->method('addCategoriesFilter')
69-
->with(['eq' => ['value']]);
69+
->with(['in' => ['value']]);
7070

7171
$this->assertTrue($this->model->apply($filterMock, $collectionMock));
7272
}

0 commit comments

Comments
 (0)