File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/GiftMessage/Test/Unit/Model/Plugin Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ public function testAfterSaveIfGiftMessagesNotExist()
156
156
$ this ->orderMock ->expects ($ this ->never ())->method ('getItems ' );
157
157
$ this ->plugin ->afterSave ($ this ->orderRepositoryMock , $ this ->orderMock );
158
158
}
159
+
159
160
/**
160
161
* @expectedException \Magento\Framework\Exception\CouldNotSaveException
161
162
* @expectedMessage Could not add gift message to order:Test message
@@ -188,7 +189,7 @@ public function testAfterSaveIfItemGiftMessagesNotExist()
188
189
$ this ->giftMessageOrderItemRepositoryMock
189
190
->expects ($ this ->once ())->method ('save ' )
190
191
->with ($ orderId , $ orderItemId , $ this ->giftMessageMock )
191
- ->willThrowException (new \Exception ('TestMessage ' ));
192
+ ->willThrowException (new \Exception ('TestMessage ' ));
192
193
$ this ->plugin ->afterSave ($ this ->orderRepositoryMock , $ this ->orderMock );
193
194
}
194
195
}
You can’t perform that action at this time.
0 commit comments