Google\Cloud\Tests\Logging\LoggerTest::testWritesEntries PHP Method

testWritesEntries() public method

public testWritesEntries ( )
    public function testWritesEntries()
    {
        $this->connection->writeEntries(['entries' => [['textPayload' => $this->textPayload, 'logName' => $this->formattedName, 'resource' => $this->resource], ['jsonPayload' => $this->jsonPayload, 'logName' => $this->formattedName, 'resource' => $this->resource]]])->willReturn([])->shouldBeCalledTimes(1);
        $logger = $this->getLogger($this->connection);
        $entry1 = $logger->entry($this->textPayload, ['resource' => $this->resource]);
        $entry2 = $logger->entry($this->jsonPayload, ['resource' => $this->resource]);
        $this->assertNull($logger->writeBatch([$entry1, $entry2]));
    }