mirror of
https://github.com/moodle/moodle.git
synced 2025-03-05 00:22:43 +01:00
MDL-39915 cleanup core_string_manager_testcase
This commit is contained in:
parent
20e561315c
commit
ad6df1bf33
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// This file is part of Moodle - http://moodle.org/
|
// This file is part of Moodle - http://moodle.org/
|
||||||
//
|
//
|
||||||
// Moodle is free software: you can redistribute it and/or modify
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
@ -19,7 +18,7 @@
|
|||||||
* Unit tests for localization support in lib/moodlelib.php
|
* Unit tests for localization support in lib/moodlelib.php
|
||||||
*
|
*
|
||||||
* @package core
|
* @package core
|
||||||
* @category test
|
* @category phpunit
|
||||||
* @copyright 2013 David Mudrak <david@moodle.com>
|
* @copyright 2013 David Mudrak <david@moodle.com>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
@ -30,24 +29,22 @@ global $CFG;
|
|||||||
require_once($CFG->libdir.'/moodlelib.php');
|
require_once($CFG->libdir.'/moodlelib.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for the API of the string_manager
|
* Tests for the API of the string_manager.
|
||||||
*
|
*
|
||||||
* @copyright 2013 David Mudrak <david@moodle.com>
|
* @copyright 2013 David Mudrak <david@moodle.com>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
class string_manager_test extends advanced_testcase {
|
class core_string_manager_testcase extends advanced_testcase {
|
||||||
|
|
||||||
public function test_string_manager_instance() {
|
public function test_string_manager_instance() {
|
||||||
global $CFG;
|
|
||||||
$this->resetAfterTest();
|
$this->resetAfterTest();
|
||||||
|
|
||||||
$otherroot = dirname(__FILE__).'/fixtures/langtest';
|
$otherroot = dirname(__FILE__).'/fixtures/langtest';
|
||||||
$stringman = testable_core_string_manager::instance($otherroot);
|
$stringman = testable_core_string_manager::instance($otherroot);
|
||||||
$this->assertTrue(in_array('string_manager', class_implements($stringman)));
|
$this->assertContains('string_manager', class_implements($stringman));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_get_language_dependencies() {
|
public function test_get_language_dependencies() {
|
||||||
global $CFG;
|
|
||||||
$this->resetAfterTest();
|
$this->resetAfterTest();
|
||||||
|
|
||||||
$otherroot = dirname(__FILE__).'/fixtures/langtest';
|
$otherroot = dirname(__FILE__).'/fixtures/langtest';
|
Loading…
x
Reference in New Issue
Block a user