mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-83468 phpunit: Test names are not optional
This commit is contained in:
parent
3b1118cfd4
commit
41249b16f3
@ -2008,7 +2008,10 @@ final class courselib_test extends advanced_testcase {
|
||||
|
||||
// Create the XML file we want to use.
|
||||
$course->category = (array)$course->category;
|
||||
$imstestcase = new imsenterprise_test();
|
||||
|
||||
// Note: this is a violation of component communication principles.
|
||||
// TODO MDL-83789.
|
||||
$imstestcase = new imsenterprise_test('courselib_imsenterprise_test');
|
||||
$imstestcase->imsplugin = enrol_get_plugin('imsenterprise');
|
||||
$imstestcase->set_test_config();
|
||||
$imstestcase->set_xml_file(false, array($course));
|
||||
|
@ -49,7 +49,7 @@ abstract class advanced_testcase extends base_testcase {
|
||||
*
|
||||
* @param string $name
|
||||
*/
|
||||
final public function __construct(string $name = null) {
|
||||
final public function __construct(string $name) {
|
||||
parent::__construct($name);
|
||||
|
||||
$this->setBackupGlobals(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user