Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
OrderEmailTest.php
Go to the documentation of this file.
1 <?php
8 
10 
12 {
13  const SERVICE_VERSION = 'V1';
14 
15  const SERVICE_NAME = 'salesOrderManagementV1';
16 
20  public function testOrderEmail()
21  {
23  ->create(\Magento\Sales\Model\Order::class);
24  $order->loadByIncrementId('100000001');
25  $serviceInfo = [
26  'rest' => [
27  'resourcePath' => '/V1/orders/' . $order->getId() . '/emails',
29  ],
30  'soap' => [
31  'service' => self::SERVICE_NAME,
32  'serviceVersion' => self::SERVICE_VERSION,
33  'operation' => self::SERVICE_NAME . 'notify',
34  ],
35  ];
36  $requestData = ['id' => $order->getId()];
37  $this->assertTrue($this->_webApiCall($serviceInfo, $requestData));
38  }
39 }
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
$order
Definition: order.php:55