This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
dev/tests/integration/testsuite/Magento/Paypal Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,6 @@ public function testRequestTotalsAndLineItemsWithFPT()
125
125
*/
126
126
public function testCallRefundTransaction ()
127
127
{
128
- $ this ->assertTrue (true );
129
128
/** @var \Magento\Sales\Model\Order $order */
130
129
$ order = $ this ->objectManager ->create (\Magento \Sales \Model \Order::class);
131
130
$ order ->loadByIncrementId ('100000001 ' );
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
+ use Magento \Framework \ObjectManagerInterface ;
8
+ use Magento \Sales \Model \OrderRepository ;
9
+ use Magento \TestFramework \Helper \Bootstrap ;
10
+
7
11
require __DIR__ . '/order_express.php ' ;
8
12
13
+ /** @var ObjectManagerInterface $objectManager */
14
+ $ objectManager = Bootstrap::getObjectManager ();
15
+
9
16
$ subTotal = 121 ;
10
17
$ taxRate = .0825 ;
11
18
$ taxAmount = $ subTotal * $ taxRate ;
18
25
$ order ->setBaseGrandTotal ($ totalAmount );
19
26
$ order ->setTaxAmount ($ taxAmount );
20
27
21
- $ order ->save ();
28
+ /** @var OrderRepository $orderRepository */
29
+ $ orderRepository = $ objectManager ->get (OrderRepository::class);
30
+ $ orderRepository ->save ($ order );
You can’t perform that action at this time.
0 commit comments