File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
dev/tests/integration/testsuite/Magento
System/Config/Backend/Catalog/Url/Rewrite
ConfigurableProduct/Model/Product/Type Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ protected function setUp(): void
54
54
public function testValidate (): void
55
55
{
56
56
$ this ->expectException (LocalizedException::class);
57
- $ this ->expectErrorMessage ((string )__ ('Please enter a valid number in this field. ' ));
57
+ $ this ->expectExceptionMessage ((string )__ ('Please enter a valid number in this field. ' ));
58
58
$ product = $ this ->productFactory ->create ();
59
59
$ product ->setQuantityAndStockStatus (['qty ' => 'string ' ]);
60
60
$ this ->model ->validate ($ product );
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public function postRequestData(): array
136
136
public function testAuthorizedSavingOfWithException (array $ data ): void
137
137
{
138
138
$ this ->expectException (AuthorizationException::class);
139
- $ this ->expectErrorMessage ('Not allowed to edit the product \'s design attributes ' );
139
+ $ this ->expectExceptionMessage ('Not allowed to edit the product \'s design attributes ' );
140
140
$ this ->request ->setPost (new Parameters ($ data ));
141
141
142
142
/** @var Product $product */
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public function testSaveWithoutWebsiteId(): void
65
65
$ productWebsiteLink = $ this ->productWebsiteLinkFactory ->create ();
66
66
$ productWebsiteLink ->setSku ('unique-simple-azaza ' );
67
67
$ this ->expectException (InputException::class);
68
- $ this ->expectErrorMessage ((string )__ ('There are not websites for assign to product ' ));
68
+ $ this ->expectExceptionMessage ((string )__ ('There are not websites for assign to product ' ));
69
69
$ this ->productWebsiteLinkRepository ->save ($ productWebsiteLink );
70
70
}
71
71
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ protected function setUp(): void
83
83
public function testSaveWithError (): void
84
84
{
85
85
$ this ->expectException (LocalizedException::class);
86
- $ this ->expectErrorMessage ((string )__ ('Anchor symbol (#) is not supported in url rewrite suffix. ' ));
86
+ $ this ->expectExceptionMessage ((string )__ ('Anchor symbol (#) is not supported in url rewrite suffix. ' ));
87
87
$ this ->model ->setValue ('.html# ' );
88
88
$ this ->model ->beforeSave ();
89
89
}
Original file line number Diff line number Diff line change @@ -656,7 +656,7 @@ protected function getUsedProducts()
656
656
*/
657
657
public function testAddCustomOptionToConfigurableChildProduct (): void
658
658
{
659
- $ this ->expectErrorMessage (
659
+ $ this ->expectExceptionMessage (
660
660
'Required custom options cannot be added to a simple product that is a part of a composite product. '
661
661
);
662
662
You can’t perform that action at this time.
0 commit comments