2014-11-06 02:44:52 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace RetailCrm\Tests;
|
|
|
|
|
|
|
|
use RetailCrm\Test\TestCase;
|
|
|
|
|
|
|
|
class ApiClientTest extends TestCase
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @group unit
|
|
|
|
*/
|
|
|
|
public function testConstruct()
|
|
|
|
{
|
|
|
|
$client = static::getApiClient();
|
|
|
|
|
|
|
|
$this->assertInstanceOf('RetailCrm\ApiClient', $client);
|
|
|
|
}
|
2014-11-06 16:39:55 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @group integration
|
|
|
|
*/
|
|
|
|
public function testStatisticUpdate()
|
|
|
|
{
|
|
|
|
$client = static::getApiClient();
|
|
|
|
|
|
|
|
$response = $client->statisticUpdate();
|
|
|
|
$this->assertTrue($response->isSuccessful());
|
|
|
|
}
|
2014-11-06 02:44:52 +03:00
|
|
|
}
|