Automattic\Wistia\Tests\ClientTest::setUp PHP Метод

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

Setup the Client
public setUp ( )
    public function setUp()
    {
        global $test_config;
        $this->includes();
        $this->config = $test_config;
        $this->client = new Client($this->config);
        $this->project = $this->client->create_project(['name' => 'Test Project']);
        $this->media = $this->client->create_media($this->config['dummy-data']['image'], ['project_id' => $this->project->hashedId]);
        $this->video = $this->client->create_media($this->config['dummy-data']['video'], ['project_id' => $this->project->hashedId]);
        $this->captions = $this->client->create_captions($this->video->hashed_id, ['caption_file' => file_get_contents($this->config['dummy-data']['captions']), 'language' => 'eng']);
    }