Skip to content

Commit

Permalink
Revert "OS-1095: Add fixes to skeleton work with 4.1" (#43)
Browse files Browse the repository at this point in the history
This reverts commit 683f156.
  • Loading branch information
ScottVerbeek authored Jan 12, 2024
1 parent 219cb9b commit a607907
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tests/enchancement_jisc_skeleton.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,34 +74,11 @@ protected function setUp(): void {
return;
}

/**
* In src/transformer/get_event_function_map.php we created a fix for core_event_deprecated_testcase. This causes the
* xapi_test_case to fail. The fix for WR322566 constant is applied to non xapi_test_case tests.
*/
if (!isset($GLOBALS['PHPUNIT_XAPI_TESTCASE'])) {
// We use a mutable global.
$GLOBALS['PHPUNIT_XAPI_TESTCASE'] = true;
}

// From Moodle 3.9 an extra event has been added.
if ($version >= 2020061500) {
$this->generatedhistorylog = 12;
$this->generatedxapilog = 2;
}

// From Moodle 4.1 is just one.
if ($version >= 2022112800) {
$this->generatedxapilog = 1;
}
}

/**
* Remove anything done in the setup.
*
* @return void
*/
protected function tearDown(): void {
unset($GLOBALS['PHPUNIT_XAPI_TESTCASE']);
}

/**
Expand Down

0 comments on commit a607907

Please sign in to comment.