Example #1
0
 public function testCreateOrder()
 {
     // if the customer does not have an organization number this will fail
     $result = $this->client->createOrder(['CustomerNumber' => 6, 'OrderRows' => [['ArticleNumber' => 3, 'DeliveredQuantity' => 10, 'Description' => 'Hello', 'OrderedQuantity' => 10, 'Unit' => 'st']]]);
     $result = Util::parseResponse($result)['Order'];
     $this->assertEquals('Vinnia AB!', $result['CustomerName']);
 }