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 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]

DML read/read-write database handle tests for mysqli_native_moodle_database

Copyright: 2018 Srdjan Janković, Catalyst IT
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 165 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/dml/tests/fixtures/read_slave_moodle_database_mock_mysqli.php

Defines 1 class

dml_mysqli_read_slave_test:: (3 methods):
  test_lock()
  test_aux_readonly()
  test_real_readslave_connect_fail()


Class: dml_mysqli_read_slave_test  - X-Ref

DML mysqli_native_moodle_database read slave specific tests

test_lock()   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_aux_readonly()   X-Ref
Test readonly handle is used for SQL_QUERY_AUX_READONLY queries.

return: void

test_real_readslave_connect_fail()   X-Ref
Test readonly connection failure with real mysqli connection

return: void