7 class HelpTest extends TestCase
9 public function test_tinymce_help_shows_tiny_and_tiny_license_link()
11 $resp = $this->get('/help/tinymce');
13 $this->withHtml($resp)->assertElementExists('a[href="https://www.tiny.cloud/"]');
14 $this->withHtml($resp)->assertElementExists('a[href="' . url('/libs/tinymce/license.txt') . '"]');
17 public function test_tiny_license_exists_where_expected()
19 $expectedPath = public_path('/libs/tinymce/license.txt');
20 $this->assertTrue(file_exists($expectedPath));
22 $contents = file_get_contents($expectedPath);
23 $this->assertStringContainsString('MIT License', $contents);
26 public function test_wysiwyg_help_shows_lexical_and_licenses_link()
28 $resp = $this->get('/help/wysiwyg');
30 $this->withHtml($resp)->assertElementExists('a[href="https://lexical.dev/"]');
31 $this->withHtml($resp)->assertElementExists('a[href="' . url('/licenses') . '"]');