mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-50428 mod_scorm: Fix tests for mod_scorm_launch_sco
This commit is contained in:
parent
f6b4fe38a9
commit
1a5f7e4cad
@ -851,8 +851,8 @@ class mod_scorm_external_testcase extends externallib_advanced_testcase {
|
||||
|
||||
// Invalid SCO.
|
||||
try {
|
||||
mod_scorm_external::launch_sco($this->scorm->id, 1);
|
||||
$this->fail('Exception expected due to not enrolled user.');
|
||||
mod_scorm_external::launch_sco($this->scorm->id, -1);
|
||||
$this->fail('Exception expected due to invalid SCO id.');
|
||||
} catch (moodle_exception $e) {
|
||||
$this->assertEquals('cannotfindsco', $e->errorcode);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user