function it_should_not_validate_group_membership_when_going_to_ldap_if_the_op_type_is_not_modification($connection)
{
$connection->execute(Argument::that(function ($operation) {
return $operation->getFilter() == '(&(objectClass=group)(cn=Domain Users)(groupType:1.2.840.113556.1.4.803:=2147483648))' && $operation->getAttributes() == ['objectSid'];
}))->willReturn(['count' => 1, ["objectSid" => ["count" => 1, 0 => pack('H*', str_replace('\\', '', $this->groupSidHex))], 0 => "objectSid", "count" => 1, "dn" => "CN=Domain Users,CN=Users,dc=example,dc=local"]]);
$this->setOperationType(AttributeConverterInterface::TYPE_SEARCH_TO);
$this->toLdap('Domain Users')->shouldBeEqualTo('513');
}