Google\Cloud\Tests\Logging\LoggingClientTest::testGetsSinksWithoutToken PHP Method

testGetsSinksWithoutToken() public method

    public function testGetsSinksWithoutToken()
    {
        $this->connection->listSinks(Argument::any())->willReturn(['sinks' => [['name' => $this->sinkName]]])->shouldBeCalledTimes(1);
        $this->client->setConnection($this->connection->reveal());
        $sinks = iterator_to_array($this->client->sinks());
        $this->assertEquals($this->sinkName, $sinks[0]->name());
    }