SevenShores\Hubspot\Tests\Integration\Resources\EngagementsTest::createEngagement PHP Method

createEngagement() private method

* Lots of tests need an existing object to modify.
private createEngagement ( )
    private function createEngagement()
    {
        sleep(1);
        $contact = $this->contacts->create([]);
        $response = $this->engagements->create(["active" => true, "ownerId" => 1, "type" => "NOTE", "timestamp" => 1409172644778], ["contactIds" => [$contact->vid], "companyIds" => [], "dealIds" => [], "ownerIds" => []], ['body' => 'note body']);
        $this->assertEquals(200, $response->getStatusCode());
        return $response;
    }