mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
24
tests/LicensesTest.php
Normal file
24
tests/LicensesTest.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Tests;
|
||||
|
||||
class LicensesTest extends TestCase
|
||||
{
|
||||
public function test_licenses_endpoint()
|
||||
{
|
||||
$resp = $this->get('/licenses');
|
||||
$resp->assertOk();
|
||||
$resp->assertSee('Licenses');
|
||||
$resp->assertSee('PHP Library Licenses');
|
||||
$resp->assertSee('Dan Brown and the BookStack Project contributors');
|
||||
$resp->assertSee('doctrine/dbal');
|
||||
$resp->assertSee('@codemirror/lang-html');
|
||||
}
|
||||
|
||||
public function test_licenses_linked_to_from_settings()
|
||||
{
|
||||
$resp = $this->asAdmin()->get('/settings/features');
|
||||
$html = $this->withHtml($resp);
|
||||
$html->assertLinkExists(url('/licenses'), 'License Details');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user