spec\LdapTools\AttributeConverter\ConvertGroupTypeSpec::it_should_aggregate_values_when_converting_a_bool_to_ldap_on_creation PHP Метод

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

    function it_should_aggregate_values_when_converting_a_bool_to_ldap_on_creation($connection)
    {
        $connection->execute(Argument::that($this->expectedOp))->willReturn($this->expectedResult);
        $this->setOperationType(AttributeConverterInterface::TYPE_CREATE);
        $this->getShouldAggregateValues()->shouldBeEqualTo(true);
        $this->setAttribute('typeDistribution');
        $this->toLdap(true)->shouldBeEqualTo('2');
        $this->setAttribute('scopeUniversal');
        $this->toLdap(true)->shouldBeEqualTo('8');
        $this->setAttribute('typeSecurity');
        $this->toLdap(true)->shouldBeEqualTo('-2147483640');
    }