File tree Expand file tree Collapse file tree 3 files changed +994
-1112
lines changed
Customer/Test/Unit/Model/StoreSwitcher
ProductAlert/Test/Unit/Model Expand file tree Collapse file tree 3 files changed +994
-1112
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ public function testProcessShouldNotLoginCustomerIfNotRegisteredInTargetStore():
118
118
119
119
public function testProcessShouldThrowExceptionIfCustomerDoesNotExist (): void
120
120
{
121
- $ this ->expectErrorMessage ('Something went wrong. ' );
121
+ $ this ->expectExceptionMessage ('Something went wrong. ' );
122
122
$ data = ['customer_id ' => 1 ];
123
123
$ this ->session ->expects ($ this ->never ())
124
124
->method ('setCustomerDataAsLoggedIn ' );
@@ -127,7 +127,7 @@ public function testProcessShouldThrowExceptionIfCustomerDoesNotExist(): void
127
127
128
128
public function testProcessShouldThrowExceptionIfAnErrorOccur (): void
129
129
{
130
- $ this ->expectErrorMessage ('Something went wrong. ' );
130
+ $ this ->expectExceptionMessage ('Something went wrong. ' );
131
131
$ data = ['customer_id ' => 2 ];
132
132
$ this ->session ->expects ($ this ->never ())
133
133
->method ('setCustomerDataAsLoggedIn ' );
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public function testGetWebsitesThrowsException(): void
85
85
{
86
86
$ message = 'get website exception ' ;
87
87
$ this ->expectException (\Exception::class);
88
- $ this ->expectErrorMessage ($ message );
88
+ $ this ->expectExceptionMessage ($ message );
89
89
90
90
$ this ->scopeConfigMock ->method ('isSetFlag ' )->willReturn (false );
91
91
$ this ->storeManagerMock ->method ('getWebsites ' )
@@ -103,7 +103,7 @@ public function testProcessPriceThrowsException(): void
103
103
{
104
104
$ message = 'create collection exception ' ;
105
105
$ this ->expectException (\Exception::class);
106
- $ this ->expectErrorMessage ($ message );
106
+ $ this ->expectExceptionMessage ($ message );
107
107
108
108
$ groupMock = $ this ->createMock (\Magento \Store \Model \Group::class);
109
109
$ storeMock = $ this ->createMock (Store::class);
@@ -131,7 +131,7 @@ public function testProcessStockThrowsException(): void
131
131
{
132
132
$ message = 'create collection exception ' ;
133
133
$ this ->expectException (\Exception::class);
134
- $ this ->expectErrorMessage ($ message );
134
+ $ this ->expectExceptionMessage ($ message );
135
135
136
136
$ groupMock = $ this ->createMock (\Magento \Store \Model \Group::class);
137
137
$ storeMock = $ this ->createMock (Store::class);
You can’t perform that action at this time.
0 commit comments