OSS\Tests\BucketLiveChannelTest::testPutLiveChannelWithDefaultParams PHP Метод

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

    public function testPutLiveChannelWithDefaultParams()
    {
        $config = new LiveChannelConfig(array('description' => 'live channel 1', 'type' => 'HLS'));
        $info = $this->client->putBucketLiveChannel($this->bucketName, 'live-1', $config);
        $this->client->deleteBucketLiveChannel($this->bucketName, 'live-1');
        $this->assertEquals('live-1', $info->getName());
        $this->assertEquals('live channel 1', $info->getDescription());
        $this->assertEquals(1, count($info->getPublishUrls()));
        $this->assertEquals(1, count($info->getPlayUrls()));
    }