X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/88c698796b2097301d494a9109631aa2bc96ec48..refs/pull/3373/head:/tests/Settings/FooterLinksTest.php diff --git a/tests/Settings/FooterLinksTest.php b/tests/Settings/FooterLinksTest.php index f26f809d5..4b822ba4c 100644 --- a/tests/Settings/FooterLinksTest.php +++ b/tests/Settings/FooterLinksTest.php @@ -1,4 +1,6 @@ -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); @@ -28,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()