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

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

    public function testDeleteLiveChannel()
    {
        $channelName = 'live-to-delete';
        $config = new LiveChannelConfig(array('description' => 'live channel to delete', 'type' => 'HLS', 'fragDuration' => 10, 'fragCount' => 5, 'playListName' => 'hello.m3u8'));
        $this->client->putBucketLiveChannel($this->bucketName, $channelName, $config);
        $this->client->deleteBucketLiveChannel($this->bucketName, $channelName);
        $list = $this->client->listBucketLiveChannels($this->bucketName, array('prefix' => $channelName));
        $this->assertEquals(0, count($list->getChannelList()));
    }