1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

wysiwyg test.

This commit is contained in:
Cameron
2020-12-13 07:40:41 -08:00
parent a8c79eda5b
commit 39691620ae
2 changed files with 7 additions and 6 deletions

View File

@@ -881,11 +881,14 @@ class e107Test extends \Codeception\Test\Unit
public function testWysiwyg()
{
e107::getConfig()->setPref('wysiwyg', true)->save();
$tinyMceInstalled = e107::isInstalled('tinymce4');
$tests = array(
//input => expected
'default' => 'tinymce4',
'default' => ($tinyMceInstalled) ? 'tinymce4' : 'bbcode',
'bbcode' => 'bbcode',
'tinymce4' => 'tinymce4'
'tinymce4' => ($tinyMceInstalled) ? 'tinymce4' : 'bbcode',
);
foreach($tests as $input => $expected)