Skip to content

Commit

Permalink
Updated namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
amandadoughty committed Jun 25, 2022
1 parent 9dd4244 commit a8a080a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### Date: 2022-Jun-25
### Version: v2022062500
### Release: 4.0.0

- Updated class names
-
Changes in version 2.1.2 (20170805)
-----------------------------------
- Added Privacy API
Expand Down
8 changes: 3 additions & 5 deletions tests/update_course_visibility_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();
namespace local_culcourse_visibility;

// ... vendor/bin/phpunit local_culcourse_visibility_update_course_visibility_testcase
// local/culcourse_visibility/tests/update_course_visibility_test.php.
defined('MOODLE_INTERNAL') || die();

/**
* Test class for update course visibility task.
Expand All @@ -35,7 +34,7 @@
* @group local_culcourse_visibility
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class local_culcourse_visibility_update_course_visibility_testcase extends advanced_testcase {
class update_course_visibility_test extends \advanced_testcase {

/** @var array of stdClass $course New courses created to test task */
protected $courses = [];
Expand All @@ -44,7 +43,6 @@ class local_culcourse_visibility_update_course_visibility_testcase extends advan
* Setup function - we will create courses with differing start and end dates.
*/
protected function setUp(): void {
global $DB;

$this->resetAfterTest(true);

Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2021101100; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2022062500; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2020110900; // Requires this Moodle version.
$plugin->component = 'local_culcourse_visibility'; // Full name of the plugin (used for diagnostics).
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '3.10.0 (Build: 2021101100)';
$plugin->release = '4.0.0 (Build: 2022062500)';

0 comments on commit a8a080a

Please sign in to comment.