Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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