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.

Differences Between: [Versions 311 and 401] [Versions 401 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.

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

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