diff --git a/tests/RetailCrm/Tests/ApiClientReferenceTest.php b/tests/RetailCrm/Tests/ApiClientReferenceTest.php index 3ccf2d2..5f00de1 100644 --- a/tests/RetailCrm/Tests/ApiClientReferenceTest.php +++ b/tests/RetailCrm/Tests/ApiClientReferenceTest.php @@ -83,9 +83,7 @@ class ApiClientReferenceTest extends TestCase 'code' => $code, 'name' => 'Bbb', )); - if ($response->getStatusCode() > 201) { - print_r($response); - } + $this->assertEquals(200, $response->getStatusCode()); } diff --git a/tests/RetailCrm/Tests/ApiClientStoreTest.php b/tests/RetailCrm/Tests/ApiClientStoreTest.php index cf31b7a..9a0b0d0 100644 --- a/tests/RetailCrm/Tests/ApiClientStoreTest.php +++ b/tests/RetailCrm/Tests/ApiClientStoreTest.php @@ -104,7 +104,7 @@ class ApiClientStoreTest extends TestCase )); $this->assertInstanceOf('RetailCrm\Response\ApiResponse', $response); - $this->assertTrue($response->isSuccessful()); + $this->assertFalse($response->isSuccessful()); } /**