protected function getMockUser(array $attributes = []) { return Adldap::getDefaultProvider()->make()->user($attributes ?: ['samaccountname' => ['jdoe'], 'mail' => ['[email protected]'], 'cn' => ['John Doe']]); }