Google\Cloud\Tests\Snippets\Storage\BucketTest::testInfo PHP Method

testInfo() public method

public testInfo ( )
    public function testInfo()
    {
        $snippet = $this->snippetFromMethod(Bucket::class, 'info');
        $snippet->addLocal('bucket', $this->bucket);
        $loc = 'inside your house';
        $this->connection->getBucket(Argument::any())->shouldBeCalled()->willReturn(['location' => $loc]);
        $this->bucket->setConnection($this->connection->reveal());
        $res = $snippet->invoke();
        $this->assertEquals($loc, $res->output());
    }