Google\Cloud\Tests\Snippets\Storage\AclTest::testGet PHP Method

testGet() public method

public testGet ( )
    public function testGet()
    {
        $snippet = $this->snippetFromMethod(Acl::class, 'get');
        $snippet->addLocal('acl', $this->acl);
        $this->connection->getAcl(Argument::any())->shouldBeCalled()->willReturn('foo');
        $this->acl->setConnection($this->connection->reveal());
        $res = $snippet->invoke('res');
        $this->assertEquals('foo', $res->returnVal());
    }