SevenShores\Hubspot\Tests\Integration\Resources\DealsTest::delete PHP Метод

delete() публичный Метод

public delete ( )
    public function delete()
    {
        $response = $this->createDeal();
        $id = $response['dealId'];
        $response = $this->deals->delete($id);
        $this->assertEquals(204, $response->getStatusCode());
        //Should not be able to find a deal after it was deleted
        $response = $this->deals->getById($id);
        $this->assertEquals(404, $response->getStatusCode());
    }