spec\LdapTools\Object\LdapObjectManagerSpec::it_should_not_query_ldap_for_the_RDN_when_moving_an_object_and_the_name_attribute_was_not_selected PHP Метод

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

    function it_should_not_query_ldap_for_the_RDN_when_moving_an_object_and_the_name_attribute_was_not_selected($connection)
    {
        $connection->execute(Argument::type('\\LdapTools\\Operation\\QueryOperation'))->shouldNotBeCalled();
        $connection->execute(Argument::type('\\LdapTools\\Operation\\RenameOperation'))->shouldBeCalled();
        $ldapObject = new LdapObject(['dn' => 'cn=foo,dc=foo,dc=bar'], 'user');
        $this->move($ldapObject, 'ou=employees,dc=foo,dc=bar');
    }