]> BookStack Code Mirror - bookstack/blobdiff - tests/User/UserManagementTest.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / tests / User / UserManagementTest.php
index 37d9b383544bbc66d5eeab3bead7b157ecc4fcb8..d92f13f0b3ff7624a58ba95298412a19bf6da152 100644 (file)
@@ -202,9 +202,13 @@ class UserManagementTest extends TestCase
     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()