SevenShores\Hubspot\Tests\Integration\Resources\DealsTest::find PHP Method

find() public method

public find ( )
    public function find()
    {
        $response = $this->createDeal();
        $id = $response['dealId'];
        //Should not be able to find a deal after it was deleted
        $response = $this->deals->getById($id);
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertSame('Cool Deal', $response['properties']['dealname']['value']);
        $this->assertSame('60000', $response['properties']['amount']['value']);
    }