Google\Cloud\Tests\Storage\AclTest::testGetWithSpecifiedEntity PHP Method

testGetWithSpecifiedEntity() public method

    public function testGetWithSpecifiedEntity()
    {
        $accessControl = ['entity' => 'allAuthenticatedUsers'];
        $this->connection->getAcl(Argument::any())->willReturn($accessControl);
        $acl = new Acl($this->connection->reveal(), 'bucketAccessControls', ['bucket' => 'bucket']);
        $this->assertEquals($accessControl, $acl->get(['entity' => 'allAuthenticatedUsers']));
    }