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

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

    function it_should_not_modify_the_value_if_the_bit_is_already_set($connection)
    {
        $result = $this->expectedResult;
        $result[0]['userAccountControl'][0] = ['514'];
        $connection->execute(Argument::that($this->expectedOp))->willReturn($result);
        $this->setOperationType(AttributeConverterInterface::TYPE_MODIFY);
        $this->setAttribute('typeSecurity');
        $this->toLdap(true)->shouldBeEqualTo('-2147483646');
        $this->setAttribute('scopeGlobal');
        $this->toLdap(true)->shouldBeEqualTo('-2147483646');
    }