You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmi5PHP/tests/cmi5_connectorsTest.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ public function get_content() {
163
163
};
164
164
$test = false;
165
165
// Expected exceptions
166
-
$exceptionmessage = "Player communication error. Something went wrong creating the course CMI5 Player returned 404 error. With message 'testmessage'." ;
166
+
$exceptionmessage = "Player communication error. Something went wrong creating the course. CMI5 Player returned 404 error. With message 'testmessage'." ;
167
167
168
168
// Mock a cmi5 connector object but only stub ONE method, as we want to test the other methods.
169
169
// Create a mock of the send_request class as we don't actually want
@@ -235,7 +235,7 @@ public function get_content() {
235
235
// The string just needs to be returned as is. We do expect create_tenant to only call this once.
236
236
$csc->expects($this->once())
237
237
->method('cmi5launch_connectors_error_message')
238
-
->with($errormessage, 'creating the course') // for tomorrow, is thi failing because with only evaluates strings? Like do we need to string the array out>
238
+
->with($errormessage, 'creating the course.') // for tomorrow, is thi failing because with only evaluates strings? Like do we need to string the array out>
239
239
// IRL it returns something that needs to be json decoded, so lets pass somethin that is encoded>
240
240
->willReturn(false);
241
241
@@ -485,7 +485,7 @@ public function testcmi5launch_retrieve_registration_with_get_fail()
485
485
->willReturn($errormessage);
486
486
487
487
// Expected exceptions
488
-
$exceptionmessage = "Player communication error. Something went wrong retrieving the registration CMI5 Player returned 404 error. With message 'testmessage'." ;
488
+
$exceptionmessage = "Player communication error. Something went wrong retrieving the registration. CMI5 Player returned 404 error. With message 'testmessage'." ;
489
489
490
490
// Expected exceptions and messages
491
491
$this->expectExceptionMessage($exceptionmessage);
@@ -533,7 +533,7 @@ public function testcmi5launch_retrieve_registration_with_get_fail_2()
533
533
534
534
$mockedclass->expects($this->once())
535
535
->method('cmi5launch_connectors_error_message')
536
-
->with($errormessage, "retrieving the registration")
536
+
->with($errormessage, "retrieving the registration.")
537
537
->willReturn(false);
538
538
539
539
// Expected exceptions
@@ -649,7 +649,7 @@ public function testcmi5launch_retrieve_registration_with_post_fail_2()
649
649
650
650
$mockedclass->expects($this->once())
651
651
->method('cmi5launch_connectors_error_message')
652
-
->with($errormessage, "retrieving the registration")
652
+
->with($errormessage, "retrieving the registration.")
653
653
->willReturn(false);
654
654
655
655
// Expected exceptions
@@ -705,7 +705,7 @@ public function testcmi5launch_retrieve_registration_with_post_fail()
705
705
->willReturn($errormessage);
706
706
707
707
// Expected exceptions
708
-
$exceptionmessage = "Player communication error. Something went wrong retrieving the registration CMI5 Player returned 404 error. With message 'testmessage'" ;
708
+
$exceptionmessage = "Player communication error. Something went wrong retrieving the registration. CMI5 Player returned 404 error. With message 'testmessage'" ;
Copy file name to clipboardExpand all lines: lang/en/cmi5launch.php
+39-2Lines changed: 39 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -132,10 +132,47 @@
132
132
";
133
133
134
134
// Info for settings warnings.
135
-
$string['cmi5launchtenantname_warning'] = '<b>Tenant name is ';
136
-
$string['cmi5launchtenantid_warning'] = '. Tenant ID is ';
135
+
$string['cmi5launchtenantnameis'] = '<b>Tenant name is ';
136
+
$string['cmi5launchtenantidis'] = '. Tenant ID is ';
137
137
$string['cmi5launchtenant_warning'] = "</b><div><br> The tenant name and ID have been set. They cannot be changed without causing problems with existing cmi5 launch link activities. To change, plugin must be uninstalled and reinstalled.</div> <div><br></div>";
0 commit comments