Skip to content

Commit

Permalink
Merge branch 'MDL-74570-fix' of https://github.com/sarjona/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols authored and ilyatregubov committed Jun 29, 2023
2 parents 86eece1 + 7ae114d commit d8a9692
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions badges/tests/external/get_user_badge_by_hash_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ private function prepare_test_data(): array {
$context = \context_system::instance();
$badge->badgeurl = \moodle_url::make_webservice_pluginfile_url($context->id, 'badges', 'badgeimage', $badge->id, '/',
'f3')->out(false);

// Hack the database to adjust the time each badge was issued.
$DB->set_field('badge_issued', 'dateissued', $now, ['userid' => $student1->id, 'badgeid' => $badgeid]);
$badge->status = BADGE_STATUS_ACTIVE_LOCKED;

// Add an endorsement for the badge.
Expand Down Expand Up @@ -154,9 +151,6 @@ private function prepare_test_data(): array {
$badge->badgeurl = \moodle_url::make_webservice_pluginfile_url($context->id, 'badges', 'badgeimage', $badge->id , '/',
'f3')->out(false);

// Hack the database to adjust the time each badge was issued.
$DB->set_field('badge_issued', 'dateissued', $now, ['userid' => $student1->id, 'badgeid' => $badge->id]);

unset($badge->endorsement);
$badge->alignment = [];
$usercoursebadge[] = (array) $badge;
Expand Down

0 comments on commit d8a9692

Please sign in to comment.