ILIAS  release_7 Revision v7.30-3-g800a261c036
ilTinyMCETest.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2require_once __DIR__ .'/bootstrap.php';
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
10{
11 protected $backupGlobals = false;
12 protected function setUp() : void
13 {
14
15 parent::setUp();
16 }
17
18 public function testAddPlugin()
19 {
20 $tinymce = new ilTinyMCE();
21 $tinymce->addPlugin('a_new_test_plugin');
22 $plugins = $tinymce->getPlugins();
23 $this->assertTrue(in_array('a_new_test_plugin', $plugins));
24
25 }
26
28 {
29 $this->assertDirectoryNotExists('./Services/RTE/tiny_mce_3_4_7');
30 $this->assertDirectoryNotExists('./Services/RTE/tiny_mce_3_5_11');
31 }
32 public function testRemovePlugin()
33 {
34 $tinymce = new ilTinyMCE();
35 $plugins_before_empty_removal=$tinymce->getPlugins();
36
37 $tinymce->removePlugin('');//empty name for the plugin
38 $this->assertEquals($plugins_before_empty_removal,$tinymce->getPlugins());
39 $tinymce->removePlugin('link');
40 $this->assertFalse(array_key_exists('link',$tinymce->getPlugins()));
41
42 }
43
44}
An exception for terminatinating execution or to throw for unit testing.
Class ilRTEBaseTest.
Class iTinyMCETest.
testTiny3xCodeHasbeenRemoved()
Tiny MCE editor class.