1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Added missing TinyMce4 files.

This commit is contained in:
Cameron
2021-02-12 06:16:07 -08:00
parent 7133d4bb6f
commit a57c598168
2 changed files with 1073 additions and 0 deletions

View File

@@ -0,0 +1,83 @@
<?php
class wysiwygTest extends \Codeception\Test\Unit
{
/** @var wysiwyg */
protected $tm;
protected function _before()
{
require_once(e_PLUGIN."tinymce4/wysiwyg_class.php");
try
{
$this->tm = $this->make('wysiwyg');
}
catch(Exception $e)
{
$this->assertTrue(false, $e->getMessage());
}
}
/*
public function testGetExternalPlugins()
{
}
public function testConvertBoolean()
{
}
public function test__construct()
{
}*/
public function testGetEditorCSS()
{
$expected = array (
0 => '/e107_web/lib/bootstrap/3/css/bootstrap.min.css',
1 => '/e107_web/lib/font-awesome/5/css/all.min.css',
2 => '/e107_web/lib/font-awesome/5/css/v4-shims.min.css',
3 => '/e107_web/lib/animate.css/animate.min.css',
4 => '/e107_plugins/tinymce4/editor.css',
);
$result = $this->tm->getEditorCSS();
$this->assertSame($expected, $result);
}
/*
public function testGetTemplates()
{
}
public function testFilter_plugins()
{
}
public function testRenderConfig()
{
}
public function testTinymce_lang()
{
}
public function testGetConfig()
{
}
*/
}