Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-43175 events: Base event unit tests for JSON encoding / decoding …

…comparison.
  • Loading branch information...
commit c5f2967a64c4e16040b482395f22d85221b12bdf 1 parent 9a77133
@abgreeve abgreeve authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/tests/event_test.php
View
6 lib/tests/event_test.php
@@ -666,6 +666,12 @@ public function test_problematic_events() {
$event6->trigger();
$this->assertDebuggingCalled();
+ // Check that whole float numbers do not trigger debugging messages.
+ $event7 = \core_tests\event\unittest_executed::create(array('courseid'=>1, 'context'=>\context_system::instance(),
+ 'other' => array('wholenumber' => 90.0000, 'numberwithdecimals' => 54.7656, 'sample' => 1)));
+ $event7->trigger();
+ $this->assertDebuggingNotCalled();
+
$event = \core_tests\event\problematic_event2::create(array());
$this->assertDebuggingNotCalled();
$event = \core_tests\event\problematic_event2::create(array('context'=>\context_system::instance()));
Please sign in to comment.
Something went wrong with that request. Please try again.