Skip to content

Commit

Permalink
test classes declared as final
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Mar 9, 2024
1 parent 41db63d commit 42bd97f
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/coupons_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/enrol_wallet_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/externallib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @runTestsInSeparateProcesses
*/
class externallib_test extends externallib_advanced_testcase {
final class externallib_test extends externallib_advanced_testcase {

/**
* Test get_instance_info
Expand Down
2 changes: 1 addition & 1 deletion tests/locallib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/notifications_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/observer_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/payment/service_provider_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* Unit tests for the enrol_wallet's payment subsystem callback implementation.
*
*/
class service_provider_test extends \advanced_testcase {
final class service_provider_test extends \advanced_testcase {

/**
* Test for service_provider::get_payable().
Expand Down
4 changes: 1 addition & 3 deletions tests/transactions_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/turn_non_refundable_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/util/balance_op_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/util/instance_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 42bd97f

Please sign in to comment.