X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/c6ad16dba657c82512ae495a4a38b99b8cfa9eeb..refs/heads/ldap_host_failover:/tests/HelpTest.php diff --git a/tests/HelpTest.php b/tests/HelpTest.php index 2e08abfbc..9cf80717f 100644 --- a/tests/HelpTest.php +++ b/tests/HelpTest.php @@ -4,13 +4,12 @@ namespace Tests; class HelpTest extends TestCase { - public function test_wysiwyg_help_shows_tiny_and_tiny_license_link() { $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() @@ -19,7 +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); } - }