Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 311 and 400] [Versions 400 and 403]

Test specific features of the Postgres dml.

Copyright: 2020 Ruslan Kabalin
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 361 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: pgsql_native_moodle_database_test  - X-Ref

Test specific features of the Postgres dml.

setUpBeforeClass()   X-Ref
Setup before class.


setUp()   X-Ref
Set up.


get_test_table($suffix = '')   X-Ref
Get a xmldb_table object for testing, deleting any existing table
of the same name, for example if one was left over from a previous test
run that crashed.

return: xmldb_table the table object.
param: string $suffix table name suffix, use if you need more test tables

get_current_index()   X-Ref
Find out the current index used for unique SQL_PARAMS_NAMED.

return: int

test_get_in_or_equal_below_limit()   X-Ref
No description

test_get_in_or_equal_single_array_value()   X-Ref
No description

test_get_in_or_equal_single_scalar_value()   X-Ref
No description

test_get_in_or_equal_multiple_int_value()   X-Ref
No description

test_get_in_or_equal_multiple_int_value_not_equal()   X-Ref
No description

test_get_in_or_equal_named_int_value_default_name()   X-Ref
No description

test_get_in_or_equal_named_int_value_specified_name()   X-Ref
No description

test_get_in_or_equal_named_scalar_value_specified_name()   X-Ref
No description

test_get_in_or_equal_query_use()   X-Ref
No description

test_get_in_or_equal_big_table_query()   X-Ref
No description