Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Writing PHPUnit tests

From MoodleDocs

Moodle 2.3


Moodle PHPUnit integration is designed to allow easy adding of new tests. At the start of each test the state is automatically reset to fresh new installation (unless explicitly told not to reset). Tests that need to modify default installation may use generators to create new courses, users, etc.