Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

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

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

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

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