SevenShores\Hubspot\Tests\Integration\Resources\TimelineTest::setUp PHP Метод

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

public setUp ( )
    public function setUp()
    {
        parent::setUp();
        $this->timeline = new Timeline(new Client(['key' => 'demo', 'userId' => '215482']));
        $response = $this->createEventType();
        $eventType = json_decode((string) $response->getBody());
        // Set this for future tests
        if ($id = $eventType->id) {
            $this->eventTypeId = $id;
        }
        sleep(1);
    }