mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-81919 core: Minor fixes
* Typo in Jerome Mouneyrac's name. * Remove other trailing commas in inline arrays.
This commit is contained in:
parent
c40f85eb6e
commit
9c706bb48b
@ -197,7 +197,7 @@ final class category_controller_test extends \advanced_testcase {
|
||||
|
||||
// Create the category.
|
||||
$params = ['component' => 'core_course', 'area' => 'course', 'itemid' => 0, 'name' => 'Cat1',
|
||||
'contextid' => \context_system::instance()->id, ];
|
||||
'contextid' => \context_system::instance()->id];
|
||||
$c1 = category_controller::create(0, (object)$params);
|
||||
$c1->save();
|
||||
$this->assertNotEmpty($c1->get('id'));
|
||||
|
@ -130,7 +130,7 @@ final class data_controller_test extends \advanced_testcase {
|
||||
$field = $this->get_generator()->create_field(['categoryid' => $category->get('id')]);
|
||||
$course = $this->getDataGenerator()->create_course();
|
||||
$data = data_controller::create(0, (object)['instanceid' => $course->id,
|
||||
'contextid' => \context_course::instance($course->id)->id, ], $field);
|
||||
'contextid' => \context_course::instance($course->id)->id], $field);
|
||||
$data->save();
|
||||
|
||||
$datarecord = $DB->get_record(\core_customfield\data::TABLE, ['id' => $data->get('id')], '*', MUST_EXIST);
|
||||
|
@ -233,7 +233,7 @@ final class field_controller_test extends \advanced_testcase {
|
||||
$category = $lpg->create_category();
|
||||
$configdata = ['a' => 'b', 'c' => ['d', 'e']];
|
||||
$field = field_controller::create(0, (object)['type' => 'text',
|
||||
'configdata' => json_encode($configdata), 'shortname' => 'a', 'name' => 'a', ], $category);
|
||||
'configdata' => json_encode($configdata), 'shortname' => 'a', 'name' => 'a'], $category);
|
||||
$field->save();
|
||||
|
||||
// Retrieve field and check configdata.
|
||||
|
@ -24,7 +24,7 @@ namespace core\exception;
|
||||
*
|
||||
* @package core
|
||||
* @subpackage exception
|
||||
* @copyright Jerome Mounerac
|
||||
* @copyright Jerome Mouneyrac
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class invalid_response_exception extends moodle_exception {
|
||||
|
@ -23,7 +23,7 @@ namespace core\exception;
|
||||
* The error string is gotten from webservice.php
|
||||
* @package core
|
||||
* @subpackage exception
|
||||
* @copyright Jerome Mounerac
|
||||
* @copyright Jerome Mouneyrac
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class webservice_parameter_exception extends moodle_exception {
|
||||
|
Loading…
x
Reference in New Issue
Block a user