Skip to content

Commit 3b15e27

Browse files
committed
MAGETWO-59924: File attribute doesn't have placeholder in admin
1 parent 304bb0c commit 3b15e27

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Category/DataProviderTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ protected function setUp()
127127
*/
128128
private function getModel()
129129
{
130-
$this->eavEntityMock->expects($this->once())
130+
$this->eavEntityMock->expects($this->any())
131131
->method('getAttributeCollection')
132132
->willReturn([]);
133133

134-
$this->eavConfig->expects($this->once())
134+
$this->eavConfig->expects($this->any())
135135
->method('getEntityType')
136136
->with('catalog_category')
137137
->willReturn($this->eavEntityMock);
@@ -199,11 +199,11 @@ public function testGetDataNoFileExists()
199199
['', null, $categoryData],
200200
['image', null, $categoryData['image']],
201201
]);
202-
$categoryMock->expects($this->once())
202+
$categoryMock->expects($this->any())
203203
->method('getExistsStoreValueFlag')
204204
->with('url_key')
205205
->willReturn(false);
206-
$categoryMock->expects($this->once())
206+
$categoryMock->expects($this->any())
207207
->method('getStoreId')
208208
->willReturn(\Magento\Store\Model\Store::DEFAULT_STORE_ID);
209209
$categoryMock->expects($this->once())
@@ -273,11 +273,11 @@ public function testGetData()
273273
['', null, $categoryData],
274274
['image', null, $categoryData['image']],
275275
]);
276-
$categoryMock->expects($this->once())
276+
$categoryMock->expects($this->any())
277277
->method('getExistsStoreValueFlag')
278278
->with('url_key')
279279
->willReturn(false);
280-
$categoryMock->expects($this->once())
280+
$categoryMock->expects($this->any())
281281
->method('getStoreId')
282282
->willReturn(\Magento\Store\Model\Store::DEFAULT_STORE_ID);
283283
$categoryMock->expects($this->once())

0 commit comments

Comments
 (0)