Skip to content
Snippets Groups Projects
Commit dc0d17ea authored by Ryan Smith's avatar Ryan Smith
Browse files

Adds checks for controllers.

parent c4a68a0e
No related branches found
No related tags found
No related merge requests found
...@@ -28,9 +28,16 @@ abstract class TestCase extends PhpUnitTestCase { ...@@ -28,9 +28,16 @@ abstract class TestCase extends PhpUnitTestCase {
public function testCreateEvent() { public function testCreateEvent() {
$input = $this->constructInput(); $input = $this->constructInput();
$moodle_event = $this->moodle_controller->createEvent($input); $moodle_event = $this->moodle_controller->createEvent($input);
$this->assertTrue($moodle_event != null, 'Check that the event exists in the expander controller.');
$translator_event = $this->translator_controller->createEvent($moodle_event); $translator_event = $this->translator_controller->createEvent($moodle_event);
$this->assertTrue($translator_event != null, 'Check that the event exists in the translator controller.');
$xapi_event = $this->xapi_controller->createEvent($translator_event); $xapi_event = $this->xapi_controller->createEvent($translator_event);
$this->assertTrue($xapi_event != null, 'Check that the event exists in the emitter controller.');
$this->assertOutput($input, $xapi_event); $this->assertOutput($input, $xapi_event);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment