@@ -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 ' , ' getBaseTaxAmount ' , ' getBaseShippingAmount '
125
+ 'getId ' , 'getIncrementId '
126
126
])
127
127
->disableOriginalConstructor ()
128
128
->getMock ();
@@ -176,12 +176,6 @@ 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 );
185
179
$ this ->addressBillingMock ->expects ($ this ->once ())
186
180
->method ('getFirstname ' )
187
181
->willReturn ('Firstname ' );
@@ -431,9 +425,6 @@ public function testAuthorize()
431
425
->method ('setVaultPaymentToken ' )
432
426
->with ($ paymentTokenMock );
433
427
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);
428
+ $ this ->assertSame ($ this ->object , $ this ->object ->authorize ($ this ->paymentMock , 33 ));
438
429
}
439
430
}
0 commit comments