mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
wysiwyg test.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user