Skip to content

Commit 351b45c

Browse files
authored
Merge pull request #63 from magento-tsg/MC-38546
[Arrows] MC-38546: Warnings in Unit tests build log
2 parents 22f110e + d1f7348 commit 351b45c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

InventorySales/Test/Unit/Model/IsProductSalableCondition/BackOrderNotifyCustomerConditionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ function ($args) {
7575
->willReturnCallback(
7676
function ($args) {
7777
$mock = $this->getMockForAbstractClass(ProductSalabilityErrorInterface::class);
78-
$mock->method('getCode')->willReturn($args['code'] ?? null);
79-
$mock->method('getMessage')->willReturn($args['message'] ?? null);
78+
$mock->method('getCode')->willReturn($args['code']);
79+
$mock->method('getMessage')->willReturn($args['message']->render());
8080
return $mock;
8181
}
8282
);
@@ -136,7 +136,7 @@ public function testExecute(
136136
$this->stockItemConfiguration->method('getBackorders')
137137
->willReturn($backOrders);
138138
$this->getProductSalableQty->method('execute')
139-
->willReturn($salableQty);
139+
->willReturn((float)$salableQty);
140140
$this->stockItemData = $stockData;
141141
$actualErrors = [];
142142
foreach ($this->model->execute('simple', 1, $reqQty)->getErrors() as $error) {

0 commit comments

Comments
 (0)