1
0
mirror of synced 2024-11-30 01:06:07 +03:00
api-client-php/tests/RetailCrm/Tests/ApiClientMarketplaceTest.php
Alex Lushpai fdd7c3d4c8 V5 (#37)
* update tests
* update version to 5.0.0, combine methods for orders & customer, update status method for users, custom fields|dictionaries & task methods, segments & product groups list methods, orders payments
2017-06-12 23:58:56 +03:00

50 lines
1.2 KiB
PHP

<?php
/**
* PHP version 5.3
*
* API client marketplace test class
*
* @category RetailCrm
* @package RetailCrm
* @author RetailCrm <integration@retailcrm.ru>
* @license https://opensource.org/licenses/MIT MIT License
* @link http://www.retailcrm.ru/docs/Developers/ApiVersion5
*/
namespace RetailCrm\Tests;
use RetailCrm\Test\TestCase;
/**
* Class ApiClientMarketplaceTest
*
* @package RetailCrm\Tests
*/
class ApiClientMarketplaceTest extends TestCase
{
const SNAME = 'Marketplace integration';
const SCODE = 'integration';
/**
* @group marketplace
*/
public function testConfigurationEdit()
{
$client = static::getApiClient();
$response = $client->marketplaceSettingsEdit(
array(
'name' => self::SNAME,
'code' => self::SCODE,
'logo' => 'http://download.retailcrm.pro/logos/setup.svg',
'active' => 'true'
)
);
static::assertInstanceOf('RetailCrm\Response\ApiResponse', $response);
static::assertTrue(in_array($response->getStatusCode(), array(200, 201)));
static::assertTrue($response->isSuccessful());
}
}