Skip to content

Commit

Permalink
MDL-73306 mod_bigbluebuttonbn: Fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyatregubov committed Jan 6, 2022
1 parent faa588f commit 9e95cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/bigbluebuttonbn/tests/lib_test.php
Expand Up @@ -299,7 +299,7 @@ public function test_bigbluebuttonbn_print_recent_activity() {
$user = $generator->create_and_enrol($this->get_course());
list($bbactivitycontext, $bbactivitycm, $bbactivity) = $this->create_instance();
// Now create a couple of logs.
$timestart = time() - 3600;
$timestart = time() - HOURSECS;
$instance = instance::get_from_instanceid($bbactivity->id);
$recordings = $this->create_recordings_for_instance($instance, [['name' => "Pre-Recording 1"]]);

Expand Down Expand Up @@ -328,7 +328,7 @@ public function test_bigbluebuttonbn_print_recent_activity() {
$this->assertStringNotContainsString($expectedname, $output);
// Test that nothing is displayed as per timestart.
ob_start();
bigbluebuttonbn_print_recent_activity($this->get_course(), true, $timestart + 3600);
bigbluebuttonbn_print_recent_activity($this->get_course(), true, time());
$output = ob_get_contents();
ob_end_clean();
$this->assertEmpty($output);
Expand Down

0 comments on commit 9e95cb8

Please sign in to comment.