...
The default data generated by this dataset load can be access directly in unit tests with the following functions:
function | description | direct access in unit test |
---|---|---|
get_base_admin | returns user data (an array) for the default admin user | $this->admin |
get_base_student | returns user data (an array) for the default student user | $this->studnet |
get_base_module | returns user data (an array) for the default module | $this->module |
get_base_faculty | returns user data (an array) for the default faculty | $this->faculty |
get_base_school | returns user data (an array) for the default school | $this->school |
The internal rogo id can also be accessed for objects within the test database using the following functions:
fucntionfunction | description |
---|---|
get_user_id(name) | get the id of the user |
get_module_id(name) | get the id of the module |
get_faculty_id(name) | get the id of the faculty |
get_school_id(name) | get the id of the school |
...