]> BookStack Code Mirror - bookstack/blobdiff - tests/User/UserPreferencesTest.php
Converted md settings to localstorage, added preview resize
[bookstack] / tests / User / UserPreferencesTest.php
index c8f4d2754636efa79f16111f092b5ee148e6d082..03dad7990464f7228acf389818a8d2f6018a5462 100644 (file)
@@ -191,22 +191,4 @@ class UserPreferencesTest extends TestCase
         $resp = $this->get($page->getUrl('/edit'));
         $resp->assertSee('option:code-editor:favourites="javascript,ruby"', false);
     }
-
-    public function test_update_boolean()
-    {
-        $editor = $this->getEditor();
-
-        $this->assertTrue(setting()->getUser($editor, 'md-show-preview'));
-
-        $resp = $this->actingAs($editor)->patch('/preferences/update-boolean', ['name' => 'md-show-preview', 'value' => 'false']);
-        $resp->assertStatus(204);
-
-        $this->assertFalse(setting()->getUser($editor, 'md-show-preview'));
-    }
-
-    public function test_update_boolean_rejects_unfamiliar_key()
-    {
-        $resp = $this->asEditor()->patch('/preferences/update-boolean', ['name' => 'md-donkey-show', 'value' => 'false']);
-        $resp->assertStatus(500);
-    }
 }