Google\Cloud\Tests\Logging\MetricTest::testUpdatesDataWithCachedData PHP Method

testUpdatesDataWithCachedData() public method

    public function testUpdatesDataWithCachedData()
    {
        $this->connection->updateMetric($this->metricData + ['metricName' => $this->formattedName])->willReturn($this->metricData)->shouldBeCalledTimes(1);
        $metric = $this->getMetric($this->connection, ['description' => 'another description']);
        $metric->update($this->metricData);
        $this->assertEquals($this->metricData['description'], $metric->info()['description']);
    }