File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
dev/tests/api-functional/testsuite/Magento/Tax/Api Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ public function testCreateTaxRateExistingCode()
140
140
141
141
public function testCreateTaxRateWithoutValue ()
142
142
{
143
- $ expectedMessage = '%fieldName is a required field. ' ;
144
143
$ data = [
145
144
'tax_rate ' => [
146
145
'tax_country_id ' => 'US ' ,
@@ -166,13 +165,13 @@ public function testCreateTaxRateWithoutValue()
166
165
$ this ->fail ('Expected exception was not raised ' );
167
166
} catch (\SoapFault $ e ) {
168
167
$ this ->assertContains (
169
- $ expectedMessage ,
168
+ ' SOAP-ERROR: Encoding: object has no \' rate \' property ' ,
170
169
$ e ->getMessage (),
171
170
'SoapFault does not contain expected message. '
172
171
);
173
172
} catch (\Exception $ e ) {
174
173
$ errorObj = $ this ->processRestExceptionResult ($ e );
175
- $ this ->assertEquals ($ expectedMessage , $ errorObj ['message ' ]);
174
+ $ this ->assertEquals (' %fieldName is a required field. ' , $ errorObj ['message ' ]);
176
175
$ this ->assertEquals (['fieldName ' => 'percentage_rate ' ], $ errorObj ['parameters ' ]);
177
176
}
178
177
}
You can’t perform that action at this time.
0 commit comments