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

testDelete() public method

public testDelete ( )
    public function testDelete()
    {
        $this->connection->deleteMetric(['metricName' => $this->formattedName])->willReturn([])->shouldBeCalledTimes(1);
        $metric = $this->getMetric($this->connection);
        $this->assertNull($metric->delete());
    }