MDL-72701 core: Improve code coverage for core

This commit is contained in:
Andrew Nicols
2021-12-21 09:24:00 +08:00
parent 3a70983d53
commit a7f6c8cdcd
16 changed files with 553 additions and 28 deletions
+7 -1
View File
@@ -33,8 +33,10 @@ require_once($CFG->libdir . '/outputlib.php');
*
* @copyright 2012 Sam Hemelryk
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @covers \theme_config
* @coversDefaultClass \theme_config
*/
class core_theme_config_testcase extends advanced_testcase {
class theme_config_test extends advanced_testcase {
/**
* This function will test directives used to serve SVG images to make sure
* this are making the right decisions.
@@ -129,6 +131,8 @@ class core_theme_config_testcase extends advanced_testcase {
/**
* This function will test custom device detection regular expression setting.
*
* @covers \core_useragent
*/
public function test_devicedetectregex() {
global $CFG;
@@ -216,6 +220,8 @@ class core_theme_config_testcase extends advanced_testcase {
/**
* Test that {@see theme_config::get_all_block_regions()} returns localised list of region names.
*
* @covers ::get_all_block_regions
*/
public function test_get_all_block_regions() {
$this->resetAfterTest();