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 8f21537 commit 55bdfbfCopy full SHA for 55bdfbf
app/code/Magento/QuoteGraphQl/Test/Unit/Model/Resolver/DiscountsTest.php
@@ -79,7 +79,9 @@ protected function setUp(): void
79
$this->quoteMock = $this->createMock(Quote::class);
80
$this->billingAddressMock = $this->createMock(Address::class);
81
$this->shippingAddressMock = $this->createMock(Address::class);
82
- $this->extensionAttributesMock = $this->createMock(AddressExtensionInterface::class);
+ $this->extensionAttributesMock = $this->getMockBuilder(AddressExtensionInterface::class)
83
+ ->onlyMethods(['getDiscounts'])
84
+ ->getMockForAbstractClass();
85
$this->extensionAttributesMock->method('getDiscounts')->willReturn(['discount1', 'discount2']);
86
}
87
0 commit comments