MDL-55910 my: various fixes
- bump version - point to correct 3.1.3 version in @since - add missing phpunit-dist.xml suite - fix context in tests
This commit is contained in:
@@ -31,7 +31,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* Class for event to be triggered when a dashboard is reset.
|
||||
*
|
||||
* @package core
|
||||
* @since Moodle 3.2
|
||||
* @since Moodle 3.1.3
|
||||
* @copyright 2016 Stephen Bourget
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
@@ -31,7 +31,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* Class for event to be triggered when a dashboard is viewed.
|
||||
*
|
||||
* @package core
|
||||
* @since Moodle 3.2
|
||||
* @since Moodle 3.1.3
|
||||
* @copyright 2016 Stephen Bourget
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
@@ -31,7 +31,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* Class for event to be triggered when all user dashboards are reset.
|
||||
*
|
||||
* @package core
|
||||
* @since Moodle 3.2
|
||||
* @since Moodle 3.1.3
|
||||
* @copyright 2016 Stephen Bourget
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
@@ -61,7 +61,7 @@ class dashboard_events_testcase extends advanced_testcase {
|
||||
$user = $this->user;
|
||||
// Trigger an event: dashboard viewed.
|
||||
$eventparams = array(
|
||||
'context' => $context = context_system::instance()
|
||||
'context' => $context = context_user::instance($user->id)
|
||||
);
|
||||
|
||||
$event = \core\event\dashboard_viewed::create($eventparams);
|
||||
|
||||
@@ -143,6 +143,9 @@
|
||||
<testsuite name="core_competency_testsuite">
|
||||
<directory suffix="_test.php">competency/tests</directory>
|
||||
</testsuite>
|
||||
<testsuite name="core_my_testsuite">
|
||||
<directory suffix="_test.php">my/tests</directory>
|
||||
</testsuite>
|
||||
|
||||
<!--Plugin suites: use admin/tool/phpunit/cli/util.php to build phpunit.xml from phpunit.xml.dist with up-to-date list of plugins in current install-->
|
||||
<!--@plugin_suites_start@-->
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$version = 2016052302.04; // 20160523 = branching date YYYYMMDD - do not modify!
|
||||
$version = 2016052302.05; // 20160523 = branching date YYYYMMDD - do not modify!
|
||||
// RR = release increments - 00 in DEV branches.
|
||||
// .XX = incremental changes.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user