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.

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