mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-70658' of https://github.com/stronk7/moodle
This commit is contained in:
commit
81044f2c11
@ -110,7 +110,7 @@ class instance {
|
||||
$cmtable = new \core\dml\table('course_modules', 'cm', 'cm');
|
||||
$cmfrom = $cmtable->get_from_sql();
|
||||
|
||||
$bbbtable = new \core\dml\table('bigbluebuttonbn', 'bbb', 'bbb');
|
||||
$bbbtable = new \core\dml\table('bigbluebuttonbn', 'bbb', 'b');
|
||||
$bbbselect = $bbbtable->get_field_select();
|
||||
$bbbfrom = $bbbtable->get_from_sql();
|
||||
|
||||
@ -155,7 +155,7 @@ EOF;
|
||||
$cmtable = new \core\dml\table('course_modules', 'cm', 'cm');
|
||||
$cmfrom = $cmtable->get_from_sql();
|
||||
|
||||
$bbbtable = new \core\dml\table('bigbluebuttonbn', 'bbb', 'bbb');
|
||||
$bbbtable = new \core\dml\table('bigbluebuttonbn', 'bbb', 'b');
|
||||
$bbbselect = $bbbtable->get_field_select();
|
||||
$bbbfrom = $bbbtable->get_from_sql();
|
||||
|
||||
@ -241,7 +241,7 @@ EOF;
|
||||
$cmtable = new \core\dml\table('course_modules', 'cm', 'cm');
|
||||
$cmfrom = $cmtable->get_from_sql();
|
||||
|
||||
$bbbtable = new \core\dml\table('bigbluebuttonbn', 'bbb', 'bbb');
|
||||
$bbbtable = new \core\dml\table('bigbluebuttonbn', 'bbb', 'b');
|
||||
$bbbselect = $bbbtable->get_field_select();
|
||||
$bbbfrom = $bbbtable->get_from_sql();
|
||||
|
||||
|
@ -198,6 +198,10 @@ class meeting_test extends \advanced_testcase {
|
||||
* @covers ::can_join
|
||||
*/
|
||||
public function test_can_join_with_dates(int $type, ?string $groupname, int $groupmode, array $canjoin, array $dates) {
|
||||
// Apply the data provider relative values to now.
|
||||
array_walk($dates, function(&$val) {
|
||||
$val = time() + $val;
|
||||
});
|
||||
$this->resetAfterTest();
|
||||
[$meeting, $useringroup, $usernotingroup, $groupid, $activity] =
|
||||
$this->prepare_meeting($type, $groupname, $groupmode, true, $dates);
|
||||
@ -283,14 +287,14 @@ class meeting_test extends \advanced_testcase {
|
||||
'groupname' => null,
|
||||
'groupmode' => NOGROUPS,
|
||||
'canjoin' => ['useringroup' => false, 'usernotingroup' => false],
|
||||
'dates' => ['openingtime' => time() - 7200, 'closingtime' => time() - 3600]
|
||||
'dates' => ['openingtime' => -7200, 'closingtime' => -3600]
|
||||
],
|
||||
'Instance Type ALL - No Group - Open in future' => [
|
||||
'type' => instance::TYPE_ALL,
|
||||
'groupname' => null,
|
||||
'groupmode' => NOGROUPS,
|
||||
'canjoin' => ['useringroup' => false, 'usernotingroup' => false],
|
||||
'dates' => ['openingtime' => time() + 3600, 'closingtime' => time() + 7200]
|
||||
'dates' => ['openingtime' => 3600, 'closingtime' => 7200]
|
||||
],
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user