Hiding since it's not really used, and may mislead on how to set default
app language (which should be done via env options).
Updated test to cover.
For #5356
</div>
</div>
- @include('users.parts.language-option-row', ['value' => old('language') ?? $user->getLocale()->appLocale()])
+ @if(!$user->isGuest())
+ @include('users.parts.language-option-row', ['value' => old('language') ?? $user->getLocale()->appLocale()])
+ @endif
</div>
<div class="text-right">
public function test_guest_profile_shows_limited_form()
{
$guest = $this->users->guest();
+
$resp = $this->asAdmin()->get('/settings/users/' . $guest->id);
$resp->assertSee('Guest');
- $this->withHtml($resp)->assertElementNotExists('#password');
+ $html = $this->withHtml($resp);
+
+ $html->assertElementNotExists('#password');
+ $html->assertElementNotExists('[name="language"]');
}
public function test_guest_profile_cannot_be_deleted()