From 2e4e24f50744ece0aa466c5763b1d73c29fb3f84 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Tue, 6 Mar 2018 14:01:00 +0300 Subject: [PATCH] Fix CostsDelete method (#62) * change phpunit call to prevent of using global configuration * fix CostsDelete method --- .travis.yml | 2 +- lib/RetailCrm/Methods/V5/Costs.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a6f2109..7933c43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,4 @@ before_script: - flags="-o" - composer install $flags -script: phpunit +script: php ./vendor/phpunit/phpunit/phpunit -c phpunit.xml.dist diff --git a/lib/RetailCrm/Methods/V5/Costs.php b/lib/RetailCrm/Methods/V5/Costs.php index 0b0306f..09f4f97 100644 --- a/lib/RetailCrm/Methods/V5/Costs.php +++ b/lib/RetailCrm/Methods/V5/Costs.php @@ -111,7 +111,8 @@ trait Costs /* @noinspection PhpUndefinedMethodInspection */ return $this->client->makeRequest( '/costs/delete', - "POST" + "POST", + ['ids' => json_encode($ids)] ); }