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