X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/263384cf99864ebdb0408fd4e478f783aa487c1a..refs/pull/4467/head:/tests/DebugViewTest.php diff --git a/tests/DebugViewTest.php b/tests/DebugViewTest.php index 63d6472b9..43de9f175 100644 --- a/tests/DebugViewTest.php +++ b/tests/DebugViewTest.php @@ -2,7 +2,8 @@ namespace Tests; -use BookStack\Auth\Access\SocialAuthService; +use BookStack\Access\SocialAuthService; +use Illuminate\Testing\TestResponse; class DebugViewTest extends TestCase { @@ -25,8 +26,8 @@ class DebugViewTest extends TestCase // BookStack version $resp->assertSeeText('BookStack Version: ' . trim(file_get_contents(base_path('version')))); // Dynamic help links - $resp->assertElementExists('a[href*="q=' . urlencode('BookStack An error occurred during testing') . '"]'); - $resp->assertElementExists('a[href*="?q=is%3Aissue+' . urlencode('An error occurred during testing') . '"]'); + $this->withHtml($resp)->assertElementExists('a[href*="q=' . urlencode('BookStack An error occurred during testing') . '"]'); + $this->withHtml($resp)->assertElementExists('a[href*="?q=is%3Aissue+' . urlencode('An error occurred during testing') . '"]'); } public function test_debug_view_only_shows_when_debug_mode_is_enabled()