@@ -122,7 +122,7 @@ protected function initializationAuthorizeMock()
122
122
$ this ->orderMock = $ this ->getMockBuilder (\Magento \Sales \Model \Order::class)
123
123
->setMethods ([
124
124
'getCustomerId ' , 'getBillingAddress ' , 'getShippingAddress ' , 'getCustomerEmail ' ,
125
- 'getId ' , 'getIncrementId '
125
+ 'getId ' , 'getIncrementId ' , ' getBaseTaxAmount ' , ' getBaseShippingAmount '
126
126
])
127
127
->disableOriginalConstructor ()
128
128
->getMock ();
@@ -176,6 +176,12 @@ protected function buildRequestData()
176
176
$ this ->orderMock ->expects ($ this ->once ())
177
177
->method ('getShippingAddress ' )
178
178
->willReturn ($ this ->addressShippingMock );
179
+ $ this ->orderMock ->expects (static ::once ())
180
+ ->method ('getBaseTaxAmount ' )
181
+ ->willReturn (1.24 );
182
+ $ this ->orderMock ->expects (static ::once ())
183
+ ->method ('getBaseShippingAmount ' )
184
+ ->willReturn (5 );
179
185
$ this ->addressBillingMock ->expects ($ this ->once ())
180
186
->method ('getFirstname ' )
181
187
->willReturn ('Firstname ' );
@@ -425,6 +431,9 @@ public function testAuthorize()
425
431
->method ('setVaultPaymentToken ' )
426
432
->with ($ paymentTokenMock );
427
433
428
- $ this ->assertSame ($ this ->object , $ this ->object ->authorize ($ this ->paymentMock , 33 ));
434
+ $ this ->object ->authorize ($ this ->paymentMock , 33 );
435
+ // $this->assertSame($this->object, $this->object->authorize($this->paymentMock, 33));
436
+ $ request = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->get (
437
+ \Magento \Paypal \Model \Payflow \Request::class);
429
438
}
430
439
}
0 commit comments