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

testDoesExistTrue() public method

public testDoesExistTrue ( )
    public function testDoesExistTrue()
    {
        $this->connection->getMetric(['metricName' => $this->formattedName])->willReturn(['name' => $this->metricName])->shouldBeCalledTimes(1);
        $metric = $this->getMetric($this->connection);
        $this->assertTrue($metric->exists());
    }