]> BookStack Code Mirror - bookstack/blob - tests/LicensesTest.php
Update wysiwyg.blade.php
[bookstack] / tests / LicensesTest.php
1 <?php
2
3 namespace Tests;
4
5 class LicensesTest extends TestCase
6 {
7     public function test_licenses_endpoint()
8     {
9         $resp = $this->get('/licenses');
10         $resp->assertOk();
11         $resp->assertSee('Licenses');
12         $resp->assertSee('PHP Library Licenses');
13         $resp->assertSee('Dan Brown and the BookStack Project contributors');
14         $resp->assertSee('doctrine/dbal');
15         $resp->assertSee('@codemirror/lang-html');
16     }
17
18     public function test_licenses_linked_to_from_settings()
19     {
20         $resp = $this->asAdmin()->get('/settings/features');
21         $html = $this->withHtml($resp);
22         $html->assertLinkExists(url('/licenses'), 'License Details');
23     }
24 }