From bd3c7710ec773cda8c4f736bc80d869ce7b42781 Mon Sep 17 00:00:00 2001 From: Markus Heck Date: Tue, 2 Apr 2024 14:02:00 +0200 Subject: [PATCH] rename adler testcase base classes --- tests/condition_test.php | 4 ++-- tests/frontend_test.php | 4 ++-- tests/lib/adler_testcase.php | 2 +- tests/static_call_trait_test.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/condition_test.php b/tests/condition_test.php index cd905d8..8e1bdb4 100644 --- a/tests/condition_test.php +++ b/tests/condition_test.php @@ -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; @@ -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' => [ diff --git a/tests/frontend_test.php b/tests/frontend_test.php index d8b0bc8..c4161ce 100644 --- a/tests/frontend_test.php +++ b/tests/frontend_test.php @@ -1,14 +1,14 @@ 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'); diff --git a/tests/lib/adler_testcase.php b/tests/lib/adler_testcase.php index fd4bfc2..a66b8fb 100644 --- a/tests/lib/adler_testcase.php +++ b/tests/lib/adler_testcase.php @@ -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; } diff --git a/tests/static_call_trait_test.php b/tests/static_call_trait_test.php index 4b3385c..84ea41a 100644 --- a/tests/static_call_trait_test.php +++ b/tests/static_call_trait_test.php @@ -1,14 +1,14 @@ 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');