Skip to content

Commit

Permalink
Basic test, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Feb 10, 2022
1 parent 275be33 commit 33a1627
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions tests/helper_test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?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/>.

namespace tool_mhacker;

use advanced_testcase;
use tool_mhacker_helper;

/**
* Tests for the tool_wp\db class methods.
*
* @package tool_mhacker
* @copyright 2022 Marina Glancy
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class helper_test extends advanced_testcase {
public function test_find_stringfile_path() {
global $CFG;
$this->assertEquals($CFG->dirroot . '/admin/tool/mhacker/lang/en/tool_mhacker.php',
tool_mhacker_helper::find_stringfile_path('tool_mhacker'));
$this->assertEquals($CFG->dirroot . '/mod/assign/lang/en/assign.php',
tool_mhacker_helper::find_stringfile_path('mod_assign'));
}
}
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@

defined('MOODLE_INTERNAL') || die;

$plugin->version = 2018112100; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2022021000; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component = 'tool_mhacker'; // Full name of the plugin (used for diagnostics).

0 comments on commit 33a1627

Please sign in to comment.