Google\Cloud\Tests\Snippets\Logging\SinkTest::testReload PHP Method

testReload() public method

public testReload ( )
    public function testReload()
    {
        $snippet = $this->snippetFromMethod(Sink::class, 'reload');
        $snippet->addLocal('sink', $this->sink);
        $this->connection->getSink(Argument::any())->shouldBeCalled()->willReturn(['destination' => 'Foo']);
        $this->sink->setConnection($this->connection->reveal());
        $res = $snippet->invoke();
        $this->assertEquals('Foo', $res->output());
    }