[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/mod/lesson/tests/ -> events_test.php (summary)

Events tests.

Copyright: 2013 Mark Nelson <[email protected]>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 242 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

mod_lesson_events_testcase:: (7 methods):
  setUp()
  test_essay_attempt_viewed()
  test_highscore_added()
  test_highscores_viewed()
  test_lesson_started()
  test_lesson_ended()
  test_essay_assessed()


Class: mod_lesson_events_testcase  - X-Ref

setUp()   X-Ref
Test set up.

This is executed before running any test in this file.

test_essay_attempt_viewed()   X-Ref
Test the essay attempt viewed event.

There is no external API for viewing an essay attempt, so the unit test will simply
create and trigger the event and ensure the legacy log data is returned as expected.

test_highscore_added()   X-Ref
Test the highscore added event.

There is no external API for adding a highscore, so the unit test will simply create
and trigger the event and ensure the legacy log data is returned as expected.

test_highscores_viewed()   X-Ref
Test the highscores viewed event.

There is no external API for viewing highscores, so the unit test will simply create
and trigger the event and ensure the legacy log data is returned as expected.

test_lesson_started()   X-Ref
Test the lesson started event.


test_lesson_ended()   X-Ref
Test the lesson ended event.


test_essay_assessed()   X-Ref
Test the essay assessed event.

There is no external API for assessing an essay, so the unit test will simply
create and trigger the event and ensure the legacy log data is returned as expected.



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1