spec\LdapTools\Resolver\BatchValueResolverSpec::it_should_error_trying_to_do_a_non_set_method_on_a_single_aggregated_value PHP Метод

it_should_error_trying_to_do_a_non_set_method_on_a_single_aggregated_value() публичный Метод

    public function it_should_error_trying_to_do_a_non_set_method_on_a_single_aggregated_value($connection)
    {
        $ldapObject = new LdapObject(['dn' => 'cn=foo,dc=foo,dc=bar'], [], 'user', 'user');
        $ldapObject->remove('disabled', true);
        $batch = $ldapObject->getBatchCollection();
        $connection->execute($this->expectedSearch)->willReturn($this->expectedResult);
        $this->beConstructedWith($this->schema, $batch, AttributeConverterInterface::TYPE_MODIFY);
        $this->setLdapConnection($connection);
        $this->setDn('cn=foo,dc=foo,dc=bar');
        $this->shouldThrow(new LogicException('Unable to modify "disabled". The "REMOVE" action is not allowed.'))->duringToLdap();
    }