Google\Cloud\Tests\Snippets\Logging\LoggerTest::testWriteBatch PHP Method

testWriteBatch() public method

public testWriteBatch ( )
    public function testWriteBatch()
    {
        $snippet = $this->snippetFromMethod(Logger::class, 'writeBatch');
        $snippet->addLocal('logger', $this->logger);
        $this->connection->writeEntries(Argument::any())->shouldBeCalled();
        $this->logger->setConnection($this->connection->reveal());
        $res = $snippet->invoke();
    }