Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.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