spec\LdapTools\AttributeConverter\ConvertValueToDnSpec::it_should_allow_an_or_filter_for_an_attribute PHP Метод

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

    function it_should_allow_an_or_filter_for_an_attribute($connection)
    {
        $connection->execute(Argument::that(function ($operation) {
            return $operation->getFilter() == '(&(|(objectClass=bar)(objectClass=foo))(cn=Foo))';
        }))->willReturn($this->entry);
        $this->setOptions(['foo' => ['attribute' => 'cn', 'filter' => ['objectClass' => ['bar', 'foo']], 'or_filter' => true]]);
        $this->setAttribute('foo');
        $this->setLdapConnection($connection);
        $this->toLdap('Foo')->shouldBeEqualTo($this->entry[0]['distinguishedname'][0]);
    }