Skip to content

Commit 2a3ac2d

Browse files
author
David Verholen
authored
[BUGFIX][11022] fix unit tests. Expect get filters to be called twice
1 parent a3f3090 commit 2a3ac2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Test/Unit/Model/AttributeSetRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function testGetList()
215215
$searchCriteriaMock->expects($this->exactly(2))->method('getFilterGroups')->willReturn([$filterGroupMock]);
216216

217217
$filterMock = $this->getMock('\Magento\Framework\Api\Filter', [], [], '', false);
218-
$filterGroupMock->expects($this->once())->method('getFilters')->willReturn([$filterMock]);
218+
$filterGroupMock->expects($this->exactly(2))->method('getFilters')->willReturn([$filterMock]);
219219

220220
$filterMock->expects($this->once())->method('getField')->willReturn('entity_type_code');
221221
$filterMock->expects($this->once())->method('getValue')->willReturn($entityTypeCode);

0 commit comments

Comments
 (0)