| [ Index ] |
PHP Cross Reference of Moodle 310 |
[Source view] [Print] [Project Stats]
DML read/read-write database handle tests for pgsql_native_moodle_database
| Copyright: | 2018 Srdjan Janković, Catalyst IT |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 200 lines (8 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 1 file lib/dml/tests/fixtures/read_slave_moodle_database_mock_pgsql.php |
core_dml_pgsql_read_slave_testcase:: (5 methods):
test_cursors()
test_read_pg_table()
test_read_pg_lock_table()
test_temp_table()
test_real_readslave_connect_fail()
Class: core_dml_pgsql_read_slave_testcase - X-Ref
DML pgsql_native_moodle_database read slave specific tests| test_cursors() X-Ref |
| Test correct database handles are used for cursors return: void |
| test_read_pg_table() X-Ref |
| Test readonly handle is used for reading from random pg_*() call queries. return: void |
| test_read_pg_lock_table() X-Ref |
| Test readonly handle is not used for reading from special pg_*() call queries, pg_try_advisory_lock and pg_advisory_unlock. return: void |
| test_temp_table() X-Ref |
| Test readonly handle is not used for reading from temptables and getting temptables metadata. This test is only possible because of no pg_query error reporting. It may need to be removed in the future if we decide to handle null results in pgsql_native_moodle_database differently. return: void |
| test_real_readslave_connect_fail() X-Ref |
| Test readonly connection failure with real pgsql connection return: void |
| Generated: Wed Jan 22 11:59:49 2025 | Cross-referenced by PHPXref 0.7.1 |