function it_should_error_on_update_delete_move_or_restore_if_the_dn_is_not_set()
{
$ldapObject = new LdapObject(['foo' => 'bar'], 'user');
$ldapObject->set('foo', 'foobar');
$this->shouldThrow('\\InvalidArgumentException')->duringPersist($ldapObject);
$this->shouldThrow('\\InvalidArgumentException')->duringDelete($ldapObject);
$this->shouldThrow('\\InvalidArgumentException')->duringRestore($ldapObject);
$this->shouldThrow('\\InvalidArgumentException')->duringMove($ldapObject, 'dc=foo,dc=bar');
}