MDL-75716 phpunit: Move tests to use correct names and ns (take#5)
Applied the following changes to various testcase classes: - Namespaced with component[\level2-API] - Moved to level2-API subdirectory when required. - Fixed incorrect use statements with leading backslash. - Remove file phpdoc block - Remove MOODLE_INTERNAL if not needed. - Changed code to point to global scope when needed. - Fix some relative paths and comments here and there. - All them passing individually. - Complete runs passing too. Special mention to: - In lib/tests/blocklib_test.php 2 helper classes have been moved to tests/fixtures, because they needed to be namespace-free.
This commit is contained in:
@@ -14,14 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Test xmlize xml import.
|
||||
*
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2017 Kilian Singer {@link http://quantumtechnology.info}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
namespace core;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
@@ -31,10 +24,12 @@ require_once($CFG->libdir . '/xmlize.php');
|
||||
/**
|
||||
* This test compares library against the original xmlize XML importer.
|
||||
*
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2017 Kilian Singer {@link http://quantumtechnology.info}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class core_xmlize_testcase extends basic_testcase {
|
||||
class xmlize_test extends \basic_testcase {
|
||||
/**
|
||||
* Test an XML import using a valid XML file.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user