Skip to content

Commit

Permalink
rename adler testcase base classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 committed Apr 2, 2024
1 parent 6752662 commit bd3c771
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/condition_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace availability_adler;


use availability_adler\lib\availability_adler_testcase;
use availability_adler\lib\adler_testcase;
use base_logger;
use core_availability\info;
use core_plugin_manager;
Expand All @@ -19,7 +19,7 @@
require_once($CFG->dirroot . '/availability/condition/adler/tests/lib/adler_testcase.php');


class condition_test extends availability_adler_testcase {
class condition_test extends adler_testcase {
public function provide_test_construct_data() {
return [
'valid' => [
Expand Down
4 changes: 2 additions & 2 deletions tests/frontend_test.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php


use availability_adler\lib\availability_adler_testcase;
use availability_adler\lib\adler_testcase;
use availability_adler\frontend;

global $CFG;
require_once($CFG->dirroot . '/availability/condition/adler/tests/lib/adler_testcase.php');


class condition_test extends availability_adler_testcase {
class condition_test extends adler_testcase {
public function test_get_javascript_strings() {
// make get_javascript_strings public
$method = new ReflectionMethod(frontend::class, 'get_javascript_strings');
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/adler_testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public function tearDown(): void {
}
}

abstract class availability_adler_testcase extends advanced_testcase {
abstract class adler_testcase extends advanced_testcase {
use general_testcase_adjustments;
}
4 changes: 2 additions & 2 deletions tests/static_call_trait_test.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php


use availability_adler\lib\availability_adler_testcase;
use availability_adler\lib\adler_testcase;
use availability_adler\static_call_trait;

global $CFG;
require_once($CFG->dirroot . '/availability/condition/adler/tests/lib/adler_testcase.php');


class static_call_trait_test extends availability_adler_testcase {
class static_call_trait_test extends adler_testcase {
public function test_call_static() {
$testclass = new testclass_1_static_call_trait_test();
$result = $testclass->test_method('test', 'test2', 'test3');
Expand Down

0 comments on commit bd3c771

Please sign in to comment.