Google\Cloud\Tests\Snippets\Logging\LoggingClientTest::testCreateSink PHP Method

testCreateSink() public method

public testCreateSink ( )
    public function testCreateSink()
    {
        $snippet = $this->snippetFromMethod(LoggingClient::class, 'createSink');
        $snippet->addLocal('logging', $this->client);
        $this->connection->createSink(Argument::any())->shouldBeCalled()->willReturn([]);
        $res = $snippet->invoke('sink');
        $this->assertInstanceOf(Sink::class, $res->returnVal());
    }