MDL-50428 mod_scorm: Fix tests for mod_scorm_launch_sco

This commit is contained in:
Juan Leyva 2015-11-17 13:23:26 +01:00
parent f6b4fe38a9
commit 1a5f7e4cad

View File

@ -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);
}