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

testGetAll() public method

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