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
5454 public function testValidate (): void
5555 {
5656 $ 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. ' ));
5858 $ product = $ this ->productFactory ->create ();
5959 $ product ->setQuantityAndStockStatus (['qty ' => 'string ' ]);
6060 $ this ->model ->validate ($ product );
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public function postRequestData(): array
136136 public function testAuthorizedSavingOfWithException (array $ data ): void
137137 {
138138 $ 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 ' );
140140 $ this ->request ->setPost (new Parameters ($ data ));
141141
142142 /** @var Product $product */
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public function testSaveWithoutWebsiteId(): void
6565 $ productWebsiteLink = $ this ->productWebsiteLinkFactory ->create ();
6666 $ productWebsiteLink ->setSku ('unique-simple-azaza ' );
6767 $ 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 ' ));
6969 $ this ->productWebsiteLinkRepository ->save ($ productWebsiteLink );
7070 }
7171
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ protected function setUp(): void
8383 public function testSaveWithError (): void
8484 {
8585 $ 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. ' ));
8787 $ this ->model ->setValue ('.html# ' );
8888 $ this ->model ->beforeSave ();
8989 }
Original file line number Diff line number Diff line change @@ -656,7 +656,7 @@ protected function getUsedProducts()
656656 */
657657 public function testAddCustomOptionToConfigurableChildProduct (): void
658658 {
659- $ this ->expectErrorMessage (
659+ $ this ->expectExceptionMessage (
660660 'Required custom options cannot be added to a simple product that is a part of a composite product. '
661661 );
662662
You can’t perform that action at this time.
0 commit comments