Skip to content

Commit

Permalink
CI fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Mar 9, 2024
1 parent f455687 commit 5509f03
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion classes/toolbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace theme_lexa;

use \moodle_url;
use moodle_url;

/**
* The theme's toolbox.
Expand Down
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
$THEME->usescourseindex = true;
// By default, all Boost themes do not need their titles displayed.
$THEME->activityheaderconfig = [
'notitle' => true
'notitle' => true,
];
4 changes: 2 additions & 2 deletions tests/PHPUNIT_COMMANDS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ composer install --dev

php admin/tool/phpunit/cli/init.php

vendor/bin/phpunit theme/lexa/tests/theme_lexa_toolbox_test.php
vendor/bin/phpunit theme/lexa/tests/toolbox_test.php
or
vendor\bin\phpunit theme/lexa/tests/theme_lexa_toolbox_test.php
vendor\bin\phpunit theme/lexa/tests/toolbox_test.php

vendor/bin/phpunit --group theme_lexa
or
Expand Down
4 changes: 3 additions & 1 deletion tests/theme_lexa_toolbox_test.php → tests/toolbox_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
*/

namespace theme_lexa;

/**
* Toolbox unit tests for the Lexa theme.
* @group theme_lexa
*/
class theme_lexa_toolbox_test extends advanced_testcase {
class toolbox_test extends \advanced_testcase {
protected function setUp(): void {
$this->resetAfterTest(true);

Expand Down
8 changes: 4 additions & 4 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@

$plugin->version = 2024030600;
$plugin->requires = 2023100900.00; // 4.3 (Build: 20231009).
$plugin->supported = array(403, 403);
$plugin->supported = [403, 403];
$plugin->component = 'theme_lexa';
$plugin->maturity = MATURITY_ALPHA;
$plugin->release = '403.0.1';
$plugin->dependencies = array(
'theme_boost' => 2023100900
);
$plugin->dependencies = [
'theme_boost' => 2023100900,
];

0 comments on commit 5509f03

Please sign in to comment.