ILIAS  release_8 Revision v8.23
ilTinyMCETest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilTinyMCETest:
+ Collaboration diagram for ilTinyMCETest:

Public Member Functions

 testAddPlugin ()
 
 testTiny3xCodeHasbeenRemoved ()
 
 testRemovePlugin ()
 

Additional Inherited Members

- Protected Member Functions inherited from ilRTEBaseTest
 setUp ()
 
 setGlobalVariable (string $name, $value)
 
 setMocks ()
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class iTinyMCETest

Author
Jephte Abijuru jepht.nosp@m.e.ab.nosp@m.ijuru.nosp@m.@min.nosp@m.ervis.nosp@m..com

Definition at line 27 of file ilTinyMCETest.php.

Member Function Documentation

◆ testAddPlugin()

ilTinyMCETest::testAddPlugin ( )

Definition at line 29 of file ilTinyMCETest.php.

29  : void
30  {
31  $tinymce = new ilTinyMCE();
32  $tinymce->addPlugin('a_new_test_plugin');
33  $plugins = $tinymce->getPlugins();
34  $this->assertContains('a_new_test_plugin', $plugins);
35  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ testRemovePlugin()

ilTinyMCETest::testRemovePlugin ( )

Definition at line 43 of file ilTinyMCETest.php.

43  : void
44  {
45  $tinymce = new ilTinyMCE();
46  $plugins_before_empty_removal = $tinymce->getPlugins();
47 
48  $tinymce->removePlugin('');//empty name for the plugin
49  $this->assertEquals($plugins_before_empty_removal, $tinymce->getPlugins());
50  $tinymce->removePlugin('link');
51  $this->assertArrayNotHasKey('link', $tinymce->getPlugins());
52  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ testTiny3xCodeHasbeenRemoved()

ilTinyMCETest::testTiny3xCodeHasbeenRemoved ( )

Definition at line 37 of file ilTinyMCETest.php.

37  : void
38  {
39  $this->assertDirectoryDoesNotExist('./Services/RTE/tiny_mce_3_4_7');
40  $this->assertDirectoryDoesNotExist('./Services/RTE/tiny_mce_3_5_11');
41  }

The documentation for this class was generated from the following file: