mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-21 23:07:55 +00:00
514db60617
Extracted robots.txt tests into its own file to fit into new folder. Also tweaked open search tests a tad to specifically check long app names.
27 lines
720 B
PHP
27 lines
720 B
PHP
<?php
|
|
|
|
namespace Tests\Meta;
|
|
|
|
use Tests\TestCase;
|
|
|
|
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');
|
|
}
|
|
}
|