Google\Cloud\Tests\System\Logging\ManageSinksTest::testReloadSink PHP Method

testReloadSink() public method

public testReloadSink ( $client )
    public function testReloadSink($client)
    {
        $name = uniqid(self::TESTING_PREFIX);
        $options = ['outputVersionFormat' => 'V2', 'filter' => 'severity >= ERROR'];
        $destination = sprintf('pubsub.googleapis.com/%s', self::$topic->info()['name']);
        $sink = $client->createSink($name, $destination, $options);
        $this->assertEquals($options['outputVersionFormat'], $sink->reload()['outputVersionFormat']);
    }