1
0
mirror of synced 2024-11-21 21:06:07 +03:00

packs & telephony methods

This commit is contained in:
Alex Lushpai 2016-01-09 15:23:50 +03:00
parent 5d37588ab2
commit 0b512fa031
4 changed files with 590 additions and 453 deletions

File diff suppressed because it is too large Load Diff

View File

@ -61,7 +61,7 @@ class Client
$url = $this->url . $path;
if (self::METHOD_GET === $method && sizeof($parameters)) {
$url .= '?' . http_build_query($parameters);
$url .= '?' . http_build_query($parameters, '', '&');
}
$ch = curl_init();

View File

@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./tests/bootstrap.php" colors="true">
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="phpunit.xsd"
bootstrap="./tests/bootstrap.php"
colors="true"
verbose="true"
processIsolation="false"
stopOnFailure="true">
<!-- Dummy values used to provide credentials. No need to change these. -->
<php>

View File

@ -200,27 +200,6 @@ class ApiClientOrdersTest extends TestCase
);
}
/**
* @group integration
*/
public function testOrdersPacksHistory()
{
$client = static::getApiClient();
$response = $client->ordersPacksHistory();
$this->assertInstanceOf('RetailCrm\Response\ApiResponse', $response);
$this->assertEquals(200, $response->getStatusCode());
$this->assertTrue($response->success);
$this->assertTrue(
isset($response['history']),
'API returns orders assembly history'
);
$this->assertTrue(
isset($response['generatedAt']),
'API returns generatedAt in orders assembly history'
);
}
/**
* @group integration
*/