Skip to content

This is an example of testing a plugin in the Moodle Workplace Multi-tenancy testing infrastructure.

Notifications You must be signed in to change notification settings

moodleworkplace/moodle-local_tenantexample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an example of testing a plugin in the Moodle Workplace Multi-tenancy testing infrastructure.

It has several Travis jobs, two of them run tests on Moodle LMS and two on Moodle Workplace testing repository (see .travis.yml).

The README file in the tool_tenant plugin explains how to modify the plugin code so it can run both with Moodle LMS and Moodle Workplace supporting multi-tenancy.

Find the commit that is called "MOODLE WORKPLACE..." in the list of commits to see examples of modifications of:

  • user selector
  • manual enrolment method
  • awarding and viewing awarded badges code

There are more core modifications in the actual Moodle Workplace and also much more functionality than in this testing repository.

About this plugin

This plugin (local_tenantexample) contains several PHPUnit and several Behat tests to demonstrate multi-tenancy features on the example of manual enrolment.

More tests and examples of the generators can be found in the tool_tenant plugin

About

This is an example of testing a plugin in the Moodle Workplace Multi-tenancy testing infrastructure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published