mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
26 lines
725 B
PHP
26 lines
725 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests;
|
||
|
|
||
|
class HelpTest extends TestCase
|
||
|
{
|
||
|
|
||
|
public function test_wysiwyg_help_shows_tiny_and_tiny_license_link()
|
||
|
{
|
||
|
$resp = $this->get('/help/wysiwyg');
|
||
|
$resp->assertOk();
|
||
|
$resp->assertElementExists('a[href="https://www.tiny.cloud/"]');
|
||
|
$resp->assertElementExists('a[href="' . url('/libs/tinymce/license.txt') . '"]');
|
||
|
}
|
||
|
|
||
|
public function test_tiny_license_exists_where_expected()
|
||
|
{
|
||
|
$expectedPath = public_path('/libs/tinymce/license.txt');
|
||
|
$this->assertTrue(file_exists($expectedPath));
|
||
|
|
||
|
$contents = file_get_contents($expectedPath);
|
||
|
$this->assertStringContainsString('GNU LESSER GENERAL PUBLIC LICENSE', $contents);
|
||
|
}
|
||
|
|
||
|
}
|