Skip to content

Commit e2f2b79

Browse files
author
Burlacu Vasilii
committed
Fixed failed unit test after review adjustments
1 parent 5b0bd95 commit e2f2b79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Layer/FilterListTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ protected function setUp()
7171
$this->model = new FilterList(
7272
$this->objectManagerMock,
7373
$this->attributeListMock,
74-
$filters,
75-
$this->layerCategoryConfigMock
74+
$this->layerCategoryConfigMock,
75+
$filters
7676
);
7777
}
7878

@@ -112,7 +112,7 @@ public function testGetFilters($method, $value, $expectedClass)
112112
->will($this->returnValue([$this->attributeMock]));
113113

114114
$this->layerCategoryConfigMock->expects($this->once())
115-
->method('isCategoryVisibleInLayer')
115+
->method('isCategoryFilterVisibleInLayerNavigation')
116116
->willReturn(true);
117117

118118
$this->assertEquals(['filter', 'filter'], $this->model->getFilters($this->layerMock));
@@ -156,7 +156,7 @@ public function testGetFiltersWithoutCategoryFilter(
156156
->will($this->returnValue([$this->attributeMock]));
157157

158158
$this->layerCategoryConfigMock->expects($this->once())
159-
->method('isCategoryVisibleInLayer')
159+
->method('isCategoryFilterVisibleInLayerNavigation')
160160
->willReturn(false);
161161

162162
$this->assertEquals($expectedResult, $this->model->getFilters($this->layerMock));

0 commit comments

Comments
 (0)