Skip to content

Commit 4f7372d

Browse files
author
Igor Melnikov
committed
MAGETWO-50549: Create Hydrator that allows convert data interface to array and array to data interface
Fixing unit tests
1 parent 8668d7b commit 4f7372d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/code/Magento/ProductVideo/Test/Unit/Model/Plugin/Catalog/Product/Gallery/CreateHandlerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ public function testBeforeExecute()
288288

289289
$this->subject->beforeExecute(
290290
$this->mediaGalleryCreateHandler,
291-
'Magento\Catalog\Api\Data\ProductInterface',
292291
$this->product
293292
);
294293
}

app/code/Magento/SalesRule/Test/Unit/Model/ResourceModel/RuleTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function testLoad()
161161
->getMockForAbstractClass();
162162
$this->entityManager->expects($this->once())
163163
->method('load')
164-
->with($abstractModel, $ruleId, RuleInterface::class);
164+
->with($abstractModel, $ruleId);
165165
$result = $this->model->load($abstractModel, $ruleId);
166166
$this->assertSame($this->model, $result);
167167
}
@@ -170,15 +170,15 @@ public function testSave()
170170
{
171171
$this->entityManager->expects($this->once())
172172
->method('save')
173-
->with($this->rule, RuleInterface::class);
173+
->with($this->rule);
174174
$this->assertEquals($this->model->save($this->rule), $this->model);
175175
}
176176

177177
public function testDelete()
178178
{
179179
$this->entityManager->expects($this->once())
180180
->method('delete')
181-
->with($this->rule, RuleInterface::class);
181+
->with($this->rule);
182182
$this->assertEquals($this->model->delete($this->rule), $this->model);
183183
}
184184

0 commit comments

Comments
 (0)