get('/help/wysiwyg'); $resp->assertOk(); $resp->assertElementExists('a[href="https://www.tiny.cloud/"]'); $resp->assertElementExists('a[href="' . url('/https/source.bookstackapp.com/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); } }