Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

Skype icons filter phpunit tests

Copyright: 2013 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 186 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

filter_emoticon_testcase:: (5 methods):
  test_filter_emoticon()
  filter_emoticon_provider()
  get_converted_content_for_emoticon()
  test_filter_invalidformat()
  test_filter_emptyemoticons()

testable_filter_emoticon:: (1 method):
  __construct()


Class: filter_emoticon_testcase  - X-Ref

Skype icons filter testcase.

test_filter_emoticon($input, $format, $expected)   X-Ref
Tests the filter doesn't affect nolink classes.


filter_emoticon_provider()   X-Ref
The data provider for filter emoticon tests.

return: array

get_converted_content_for_emoticon($text)   X-Ref
Translate the text for a single emoticon into the rendered value.

param: string  $text The text to translate.
return: string

test_filter_invalidformat()   X-Ref
Tests the filter doesn't break anything if activated but invalid format passed.


test_filter_emptyemoticons()   X-Ref
Tests the filter doesn't break anything if activated but no emoticons available.


Class: testable_filter_emoticon  - X-Ref

Subclass for easier testing.

__construct()   X-Ref
No description