MDL-56529 enrol_lti: Fix for tool_provider_test
authorJun Pataleta <jun@moodle.com>
Fri, 21 Oct 2016 04:34:00 +0000 (12:34 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 21 Oct 2016 04:34:00 +0000 (12:34 +0800)
* Use -1 for simulating a non-existent tool for
  tool_provider_testcase::test_constructor_with_non_existent_tool()

enrol/lti/tests/tool_provider_test.php

index 64f3354..5e673ec 100644 (file)
@@ -75,7 +75,7 @@ class tool_provider_testcase extends advanced_testcase {
      */
     public function test_constructor_with_non_existent_tool() {
         $this->expectException('dml_exception');
-        new tool_provider(1);
+        new tool_provider(-1);
     }
 
     /**