]> BookStack Code Mirror - bookstack/blobdiff - tests/Settings/FooterLinksTest.php
Fixed tests from streaming changes
[bookstack] / tests / Settings / FooterLinksTest.php
index 55c3e107d5ff4b071e98cf2cd50f7475a148d018..4b822ba4ceb62faac0fc9c791b21796d95346c03 100644 (file)
@@ -8,13 +8,13 @@ class FooterLinksTest extends TestCase
 {
     public function test_saving_setting()
     {
-        $resp = $this->asAdmin()->post('/settings', [
+        $resp = $this->asAdmin()->post('/settings/customization', [
             'setting-app-footer-links' => [
                 ['label' => 'My custom link 1', 'url' => 'https://example.com/1'],
                 ['label' => 'My custom link 2', 'url' => 'https://example.com/2'],
             ],
         ]);
-        $resp->assertRedirect('/settings');
+        $resp->assertRedirect('/settings/customization');
 
         $result = setting('app-footer-links');
         $this->assertIsArray($result);
@@ -30,11 +30,11 @@ class FooterLinksTest extends TestCase
             ['label' => 'Another Link', 'url' => 'https://example.com/link-b'],
         ]]);
 
-        $resp = $this->asAdmin()->get('/settings');
-        $resp->assertSee('value="My custom link"');
-        $resp->assertSee('value="Another Link"');
-        $resp->assertSee('value="https://example.com/link-a"');
-        $resp->assertSee('value="https://example.com/link-b"');
+        $resp = $this->asAdmin()->get('/settings/customization');
+        $resp->assertSee('value="My custom link"', false);
+        $resp->assertSee('value="Another Link"', false);
+        $resp->assertSee('value="https://example.com/link-a"', false);
+        $resp->assertSee('value="https://example.com/link-b"', false);
     }
 
     public function test_footer_links_show_on_pages()