spec\LdapTools\AttributeConverter\ConvertUserAccountControlSpec::it_should_error_on_modifcation_when_the_existing_LDAP_object_cannot_be_queried PHP Метод

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

    function it_should_error_on_modifcation_when_the_existing_LDAP_object_cannot_be_queried($connection)
    {
        $connection->execute(Argument::that($this->expectedOp))->willReturn(['count' => 0]);
        $this->setOperationType(AttributeConverterInterface::TYPE_MODIFY);
        $this->setAttribute('disabled');
        $this->shouldThrow(new AttributeConverterException("Unable to find LDAP object: cn=foo,dc=foo,dc=bar"))->duringToLdap(true);
    }