Skip to content

Commit 09bf477

Browse files
MC-33879: Paypal checkout Shipping method not updating correctly
1 parent 13ea0dc commit 09bf477

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Braintree/Test/Unit/Model/Paypal/Helper/ShippingMethodUpdaterTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,12 @@ protected function setUp(): void
8080
/**
8181
* Test execute exception
8282
*
83-
* @expectedException \InvalidArgumentException
84-
* @expectedExceptionMessage The "shippingMethod" field does not exists.
83+
* @return void
8584
*/
8685
public function testExecuteException(): void
8786
{
87+
$this->expectException(\InvalidArgumentException::class);
88+
$this->expectExceptionMessage("The \"shippingMethod\" field does not exists.");
8889
$quoteMock = $this->getQuoteMock();
8990

9091
$this->shippingMethodUpdater->execute('', $quoteMock);

0 commit comments

Comments
 (0)