Google\Cloud\Tests\Logging\SinkTest::testUpdatesDataWithoutCachedData PHP Method

testUpdatesDataWithoutCachedData() public method

    public function testUpdatesDataWithoutCachedData()
    {
        $this->connection->updateSink($this->sinkData + ['sinkName' => $this->formattedName])->willReturn($this->sinkData)->shouldBeCalledTimes(1);
        $this->connection->getSink(Argument::any())->willReturn(['destination' => 'another destination'])->shouldBeCalledTimes(1);
        $sink = $this->getSink($this->connection);
        $sink->update($this->sinkData);
        $this->assertEquals($this->sinkData['destination'], $sink->info()['destination']);
    }