Skip to content

Commit d0b547c

Browse files
author
Mastiuhin Oleksandr
committed
Fix expectExceptionMessage() 'message' parameter
1 parent a716ab0 commit d0b547c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/code/Magento/Catalog/Test/Unit/Model/CategoryRepositoryTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,7 @@ public function saveWithValidateCategoryExceptionDataProvider()
285285
return [
286286
[
287287
true, \Magento\Framework\Exception\CouldNotSaveException::class,
288-
'Could not save category: The "ValidateCategoryTest" attribute is required. Enter and try again.' .
289-
'Enter and try again.',
288+
'Could not save category: The "ValidateCategoryTest" attribute is required. Enter and try again.'
290289
], [
291290
'Something went wrong', \Magento\Framework\Exception\CouldNotSaveException::class,
292291
'Could not save category: Something went wrong'

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductCustomOptionRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function testAddNegative($optionData)
217217
}
218218
} else {
219219
$this->expectException('Exception');
220-
$this->expectExceptionMessage(400);
220+
$this->expectExceptionCode(400);
221221
}
222222
$this->_webApiCall($serviceInfo, ['option' => $optionDataPost]);
223223
}

0 commit comments

Comments
 (0)