]> BookStack Code Mirror - bookstack/blobdiff - tests/HelpTest.php
Added more complexity in an attempt to make ldap host failover fit
[bookstack] / tests / HelpTest.php
index bf883bd3966d3be711e3d00fe0bd7b6dc1030983..9cf80717fe088ea43865a67cdddd62d5017b0102 100644 (file)
@@ -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('/libs/tinymce/license.txt') . '"]');
+        $this->withHtml($resp)->assertElementExists('a[href="https://www.tiny.cloud/"]');
+        $this->withHtml($resp)->assertElementExists('a[href="' . url('/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);
     }
 }