Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]
Testing the H5peditorStorage interface implementation.
Copyright: | 2020 Victor Deniz <victor@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 394 lines (15 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
editor_framework_testcase:: (6 methods):
setUp()
test_get_language()
get_language_provider()
test_get_available_languages()
get_available_languages_provider()
test_getLibraries()
Class: editor_framework_testcase - X-Ref
Test class covering the H5peditorStorage interface implementation.setUp() X-Ref |
Set up function for tests. |
test_get_language(array $datalib, string $lang, ?bool $emptyexpected = false, ?string $machinename = '',?int $majorversion = 1, ?int $minorversion = 0) X-Ref |
Test that the method getLanguage retrieves the translation of a library in the requested language. param: array $datalib Library data to create param: string $lang Language to retrieve the translation param: bool $emptyexpected True when false value is expected; false, otherwise param: string $machinename The machine readable name of the library(content type) param: int $majorversion Major part of version number param: int $minorversion Minor part of version number |
get_language_provider() X-Ref |
Data provider for test_get_language(). return: array |
test_get_available_languages(array $datalib, ?array $expectedlangs = null, ?string $machinename = '',?int $majorversion = 1, ?int $minorversion = 0) X-Ref |
Test that the method getAvailableLanguages retrieves all the language available of a library. param: array $datalib Library data to create param: array $expectedlangs Available languages expected. param: string $machinename The machine readable name of the library(content type) param: int $majorversion Major part of version number param: int $minorversion Minor part of version number |
get_available_languages_provider() X-Ref |
Data provider for test_get_available_languages(). return: array |
test_getLibraries() X-Ref |
Test that the method getLibraries get the specified libraries or all the content types (runnable = 1). |