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.

(no description)

File Size: 269 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

googledocs_drive_content_test:: (4 methods):
  test_get_content_nodes()
  get_content_nodes_provider()
  test_get_navigation()
  get_navigation_provider()


Class: googledocs_drive_content_test  - X-Ref

Class containing unit tests for the drive browser class.

test_get_content_nodes(string $query, string $path, bool $sortcontent, array $filterextensions,array $shareddrives, array $drivecontents, array $expected)   X-Ref
Test get_content_nodes().

param: string $query The query string
param: string $path The path
param: bool $sortcontent Whether the contents should be sorted in alphabetical order
param: array $filterextensions The array containing file extensions that should be disallowed (filtered)
param: array $shareddrives The array containing the existing shared drives
param: array $drivecontents The array containing the fetched google drive contents
param: array $expected The expected array which contains the generated repository content nodes

get_content_nodes_provider()   X-Ref
Data provider for test_get_content_nodes().

return: array

test_get_navigation(string $nodepath, array $expected)   X-Ref
Test get_navigation().

param: string $nodepath The node path string
param: array $expected The expected array containing the repository navigation nodes

get_navigation_provider()   X-Ref
Data provider for test_get_navigation().

return: array