5 class HelpTest extends TestCase
7 public function test_wysiwyg_help_shows_tiny_and_tiny_license_link()
9 $resp = $this->get('/help/wysiwyg');
11 $this->withHtml($resp)->assertElementExists('a[href="https://www.tiny.cloud/"]');
12 $this->withHtml($resp)->assertElementExists('a[href="' . url('/libs/tinymce/license.txt') . '"]');
15 public function test_tiny_license_exists_where_expected()
17 $expectedPath = public_path('/libs/tinymce/license.txt');
18 $this->assertTrue(file_exists($expectedPath));
20 $contents = file_get_contents($expectedPath);
21 $this->assertStringContainsString('MIT License', $contents);