Skip to content

Commit

Permalink
Fix plugin CI complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Jul 4, 2024
1 parent a6737fb commit 54dfff0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function xmldb_threesixo_upgrade($oldversion) {
}

if ($oldversion < 2024063000) {
// Queue the ad-hoc task to fix
// Queue the ad-hoc task to fix.
$task = new \mod_threesixo\task\fix_responses();
\core\task\manager::queue_adhoc_task($task, true);
// Threesixo savepoint reached.
Expand Down
3 changes: 0 additions & 3 deletions tests/api_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
namespace mod_threesixo;

use advanced_testcase;
use coding_exception;
use DateTime;
use dml_exception;
use moodle_exception;

/**
* API tests.
Expand Down
6 changes: 4 additions & 2 deletions tests/fix_responses_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

use mod_threesixo\api;
namespace mod_threesixo;

use advanced_testcase;
use mod_threesixo\task\fix_responses;

/**
Expand All @@ -23,7 +25,7 @@
* @package mod_threesixo
* @copyright 2024 Jun Pataleta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @coversDefaultClass fix_responses
* @coversDefaultClass \mod_threesixo\task\fix_responses
*/
class fix_responses_test extends advanced_testcase {

Expand Down

0 comments on commit 54dfff0

Please sign in to comment.