Google\Cloud\Tests\Snippets\Logging\SinkTest::testDelete PHP 메소드

testDelete() 공개 메소드

public testDelete ( )
    public function testDelete()
    {
        $snippet = $this->snippetFromMethod(Sink::class, 'delete');
        $snippet->addLocal('sink', $this->sink);
        $this->connection->deleteSink(Argument::any())->shouldBeCalled();
        $this->sink->setConnection($this->connection->reveal());
        $snippet->invoke();
    }