Skip to content

Commit 412c02a

Browse files
committed
ACP2E-87: Product price range filter exception on category page
- Fix static test
1 parent 74cd34b commit 412c02a

File tree

1 file changed

+9
-3
lines changed
  • app/code/Magento/CatalogSearch/Test/Unit/Model/Layer/Filter

1 file changed

+9
-3
lines changed

app/code/Magento/CatalogSearch/Test/Unit/Model/Layer/Filter/PriceTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,13 @@ public function testApplyWithEmptyRequest(?int $requestValue, $idValue): void
188188

189189
$this->request
190190
->method('getParam')
191-
->with($requestField);
191+
->with($requestField)
192+
->willReturnMap(
193+
[
194+
[$requestField, $requestValue],
195+
[$idField, $idValue],
196+
]
197+
);
192198

193199
$result = $this->target->apply($this->request);
194200
$this->assertSame($this->target, $result);
@@ -268,8 +274,8 @@ public function applyDataProvider(): array
268274
}
269275

270276
/**
271-
* @return void
272-
*/
277+
* @return void
278+
*/
273279
public function testGetItems(): void
274280
{
275281
$this->target->setAttributeModel($this->attribute);

0 commit comments

Comments
 (0)