]> BookStack Code Mirror - bookstack/blobdiff - tests/Settings/SettingsTest.php
Updated attachment links to have dropdown for open type
[bookstack] / tests / Settings / SettingsTest.php
index bef354dacc79763d480c85d49e83ed06ac3a2bdb..48840fc0bcae93f5d6327289b8702c782174cc14 100644 (file)
@@ -10,7 +10,11 @@ class SettingsTest extends TestCase
     {
         $resp = $this->asAdmin()->get('/settings');
 
-        $resp->assertRedirect('/settings/features');
+        $resp->assertStatus(302);
+
+        // Manually check path to ensure it's generated as the full path
+        $location = $resp->headers->get('location');
+        $this->assertEquals(url('/settings/features'), $location);
     }
 
     public function test_settings_category_links_work_as_expected()