We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13ea0dc commit 09bf477Copy full SHA for 09bf477
app/code/Magento/Braintree/Test/Unit/Model/Paypal/Helper/ShippingMethodUpdaterTest.php
@@ -80,11 +80,12 @@ protected function setUp(): void
80
/**
81
* Test execute exception
82
*
83
- * @expectedException \InvalidArgumentException
84
- * @expectedExceptionMessage The "shippingMethod" field does not exists.
+ * @return void
85
*/
86
public function testExecuteException(): void
87
{
+ $this->expectException(\InvalidArgumentException::class);
88
+ $this->expectExceptionMessage("The \"shippingMethod\" field does not exists.");
89
$quoteMock = $this->getQuoteMock();
90
91
$this->shippingMethodUpdater->execute('', $quoteMock);
0 commit comments