-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
* @copyright 2024 2024, Mohammad Farouk <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class coupons_test extends \advanced_testcase { | ||
final class coupons_test extends \advanced_testcase { | ||
|
||
/** | ||
* Categories. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ | |
* @copyright 2023 Mo Farouk <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class enrol_wallet_test extends \advanced_testcase { | ||
final class enrol_wallet_test extends \advanced_testcase { | ||
/** | ||
* Basic test for enrol wallet plugin | ||
* @covers \enrol_wallet_plugin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
* @copyright 2023 Mo Farouk <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class locallib_test extends \advanced_testcase { | ||
final class locallib_test extends \advanced_testcase { | ||
|
||
/** | ||
* test_enrol_wallet_is_borrow_eligible | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
* @copyright 2023 Mo Farouk <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class notifications_test extends \advanced_testcase { | ||
final class notifications_test extends \advanced_testcase { | ||
/** | ||
* Test transaction_notifications | ||
* @covers ::transaction_notify() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
* @copyright 2023 Mo Farouk <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class observer_test extends \advanced_testcase { | ||
final class observer_test extends \advanced_testcase { | ||
/** | ||
* Test event observer completion awards. | ||
* @covers ::wallet_completion_awards | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,6 @@ | |
*/ | ||
namespace enrol_wallet; | ||
|
||
use enrol_wallet\transactions; | ||
|
||
defined('MOODLE_INTERNAL') || die(); | ||
global $CFG; | ||
require_once($CFG->dirroot.'/enrol/wallet/lib.php'); | ||
|
@@ -36,7 +34,7 @@ | |
* @copyright 2023 Mo Farouk <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class transactions_test extends \advanced_testcase { | ||
final class transactions_test extends \advanced_testcase { | ||
|
||
/** | ||
* The transactions class. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
* @copyright 2023 Mo Farouk <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class turn_non_refundable_test extends \advanced_testcase { | ||
final class turn_non_refundable_test extends \advanced_testcase { | ||
/** | ||
* Test adhoc task turn_non_refundable. | ||
* @covers \turn_non_refundable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
* @copyright 2024 Mohammad Farouk <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class balance_op_test extends \advanced_testcase { | ||
final class balance_op_test extends \advanced_testcase { | ||
/** | ||
* Test conditional discounts. | ||
* @covers ::conditional_discount_charging() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
* @copyright 2024 2024, Mohammad Farouk <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class instance_test extends \advanced_testcase { | ||
final class instance_test extends \advanced_testcase { | ||
/** | ||
* Testing get cost after discount. | ||
* | ||
|