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

testUpdate() public method

public testUpdate ( )
    public function testUpdate()
    {
        $accessControl = ['entity' => 'allAuthenticatedUsers', 'role' => 'WRITER'];
        $this->connection->patchAcl(Argument::any())->willReturn($accessControl);
        $acl = new Acl($this->connection->reveal(), 'bucketAccessControls', ['bucket' => 'bucket']);
        $this->assertEquals($accessControl, $acl->update('allAuthenticatedUsers', 'WRITER'));
    }