Skip to content

Commit

Permalink
class level variable thing for more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 committed Apr 3, 2024
1 parent 3394024 commit 49a4392
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/backup/moodle2/backup__adler_plugin_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
* Therefore, this test is implemented as an integration test.
*/
class backup__adler_plugin_test extends adler_testcase {
private stdClass $course;
private stdClass $module;

public function setUp(): void {
parent::setUp();

Expand Down
3 changes: 3 additions & 0 deletions tests/local/course_module/db_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace local_adler\local\course_module;


use component_generator_base;
use dml_exception;
use local_adler\lib\adler_testcase;

Expand All @@ -11,6 +12,8 @@


class db_test extends adler_testcase {
private component_generator_base $adler_generator;

public function setUp(): void {
parent::setUp();
$this->adler_generator = $this->getDataGenerator()->get_plugin_generator('local_adler');
Expand Down
3 changes: 3 additions & 0 deletions tests/local/section/db_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace local_adler\local\section;


use component_generator_base;
use dml_exception;
use local_adler\lib\adler_testcase;
use Mockery;
Expand All @@ -12,6 +13,8 @@


class db_test extends adler_testcase {
private component_generator_base $adler_generator;

public function setUp(): void {
parent::setUp();
$this->adler_generator = $this->getDataGenerator()->get_plugin_generator('local_adler');
Expand Down

0 comments on commit 49a4392

Please sign in to comment.