Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

Area category unit tests.

Copyright: 2018 Dmitrii Metelkin <dmitriim@catalyst-au.net>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 120 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

search_area_category_testcase:: (5 methods):
  get_mocked_area()
  get_areas()
  test_default_values()
  test_getters()
  test_list_of_areas_could_be_set()


Class: search_area_category_testcase  - X-Ref

Area category unit tests.

get_mocked_area($areaid)   X-Ref
A helper function to get a mocked search area.

param: string $areaid
return: \PHPUnit\Framework\MockObject\MockObject

get_areas()   X-Ref
A helper function to get a list of search areas.

return: array

test_default_values()   X-Ref
Test default values.


test_getters()   X-Ref
Test that all get functions work as expected.


test_list_of_areas_could_be_set()   X-Ref
Test that a list of areas could be set correctly.