Google\Cloud\Tests\Logging\MetricTest::testUpdatesDataWithoutCachedData PHP 메소드

testUpdatesDataWithoutCachedData() 공개 메소드

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