Skip to content

Commit

Permalink
MDL-63658 core_favourites: introduce the favourites subsystem to core
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed Oct 17, 2018
1 parent c2f1dbc commit 4fca5da
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
22 changes: 22 additions & 0 deletions lang/en/favourites.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'favourites', language 'en', branch 'master'
*
* @package core_favourites
* @copyright 2018 Jake Dallimore <jrhdallimore@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
1 change: 1 addition & 0 deletions lib/classes/component.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ protected static function fetch_subsystems() {
'edufields' => null,
'enrol' => $CFG->dirroot.'/enrol',
'error' => null,
'favourites' => $CFG->dirroot . '/favourites',
'filepicker' => null,
'fileconverter' => $CFG->dirroot.'/files/converter',
'files' => $CFG->dirroot.'/files',
Expand Down
2 changes: 1 addition & 1 deletion lib/tests/component_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class core_component_testcase extends advanced_testcase {
* this is defined here to annoy devs that try to add more without any thinking,
* always verify that it does not collide with any existing add-on modules and subplugins!!!
*/
const SUBSYSTEMCOUNT = 66;
const SUBSYSTEMCOUNT = 67;

public function setUp() {
$psr0namespaces = new ReflectionProperty('core_component', 'psr0namespaces');
Expand Down
3 changes: 3 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
<directory suffix="_test.php">lib/tests</directory>
<directory suffix="_test.php">lib/ajax/tests</directory>
</testsuite>
<testsuite name="core_favourites_testsuite">
<directory suffix="_test.php">favourites/tests</directory>
</testsuite>
<testsuite name="core_form_testsuite">
<directory suffix="_test.php">lib/form/tests</directory>
</testsuite>
Expand Down

0 comments on commit 4fca5da

Please sign in to comment.