Skip to content

Commit 0b36079

Browse files
MAGETWO-92693: Some improvements on product create|edit page in admin area
1 parent aabed9c commit 0b36079

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,13 @@ public function testGetList()
124124
$collectionSize = 1;
125125

126126
$searchCriteriaMock = $this->getMockBuilder(SearchCriteriaInterface::class)
127+
->setMethods(['getPageSize'])
127128
->getMockForAbstractClass();
128129

130+
$searchCriteriaMock->expects($this->any())
131+
->method('getPageSize')
132+
->willReturn($collectionSize);
133+
129134
$attributeMock = $this->createAttributeMock($attributeCode, $attributeId);
130135

131136
$attributeCollectionMock = $this->getMockBuilder(Collection::class)

0 commit comments

Comments
 (0)