Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

BBB Library tests class.

Author: Laurent David (laurent@call-learning.fr)
Copyright: 2018 - present, Blindside Networks Inc
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 240 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: files_test  - X-Ref

BBB Library tests class.

test_pluginfile_valid()   X-Ref
Plugin valid test case


test_pluginfile_file()   X-Ref
Plugin file test case


test_default_presentation_get_file()   X-Ref
Get presentation file


test_presentation_file_accessible_twice()   X-Ref
Test that file is accessible only once.


test_presentation_file_not_accessible_externally()   X-Ref
Test that file is accessible only once.


test_pluginfile_filename()   X-Ref
Get filename test


test_get_media_file()   X-Ref
Get media files


create_user_and_activity($presentationpath = null, $closed = false)   X-Ref
Create a user and an activity

return: array
param: string|null $presentationpath
param: bool $closed

create_sample_file($filename, $contextid)   X-Ref
Helper to create sample file for tests

return: stored_file
param: string $filename
param: int $contextid