X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/045710ea08ddee13e976d776410ac5b41981d58f..refs/pull/5096/head:/tests/HelpTest.php diff --git a/tests/HelpTest.php b/tests/HelpTest.php index bf883bd39..9cf80717f 100644 --- a/tests/HelpTest.php +++ b/tests/HelpTest.php @@ -8,8 +8,8 @@ class HelpTest extends TestCase { $resp = $this->get('/help/wysiwyg'); $resp->assertOk(); - $resp->assertElementExists('a[href="https://www.tiny.cloud/"]'); - $resp->assertElementExists('a[href="' . url('/http/source.bookstackapp.com/libs/tinymce/license.txt') . '"]'); + $this->withHtml($resp)->assertElementExists('a[href="https://www.tiny.cloud/"]'); + $this->withHtml($resp)->assertElementExists('a[href="' . url('/http/source.bookstackapp.com/libs/tinymce/license.txt') . '"]'); } public function test_tiny_license_exists_where_expected() @@ -18,6 +18,6 @@ class HelpTest extends TestCase $this->assertTrue(file_exists($expectedPath)); $contents = file_get_contents($expectedPath); - $this->assertStringContainsString('GNU LESSER GENERAL PUBLIC LICENSE', $contents); + $this->assertStringContainsString('MIT License', $contents); } }