-
Notifications
You must be signed in to change notification settings - Fork 28
/
ClientTest.php
45 lines (42 loc) · 2.92 KB
/
ClientTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
namespace Hitmeister\Component\Api\Tests;
use Hitmeister\Component\Api\Client;
/**
* Class ClientTest
*
* @category PHP-SDK
* @package Hitmeister\Component\Api\Tests
* @author Maksim Naumov <maksim.naumov@hitmeister.de>
* @license https://opensource.org/licenses/MIT MIT
* @link https://www.hitmeister.de/api/v1/
*/
class ClientTest extends TransportAwareTestCase
{
public function testNamespaceInstances()
{
$client = new Client($this->transport);
$this->assertInstanceOf('\Hitmeister\Component\Api\Transport\Transport', $client->getTransport());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\AttributesNamespace', $client->attributes());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\CategoriesNamespace', $client->categories());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\ClaimMessagesNamespace', $client->claimMessages());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\ClaimsNamespace', $client->claims());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\ImportFilesNamespace', $client->importFiles());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\ItemsNamespace', $client->items());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\OrdersNamespace', $client->orders());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\OrderUnitsNamespace', $client->orderUnits());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\ProductDataNamespace', $client->productData());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\ProductDataStatusNamespace', $client->productDataStatus());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\ReportsNamespace', $client->reports());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\ReturnsNamespace', $client->returns());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\ReturnUnitsNamespace', $client->returnUnits());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\ShipmentsNamespace', $client->shipments());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\ShippingGroupsNamespace', $client->shippingGroups());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\StatusNamespace', $client->status());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\SubscriptionsNamespace', $client->subscriptions());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\UnitsNamespace', $client->units());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\TicketsNamespace', $client->tickets());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\TicketMessagesNamespace', $client->ticketMessages());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\OrderInvoicesNamespace', $client->orderInvoices());
$this->assertInstanceOf('\Hitmeister\Component\Api\Namespaces\WarehousesNamespace', $client->warehouses());
}
}