Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

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: 87 lines (3 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

core_dml_mysqli_read_slave_testcase:: (2 methods):
  test_lock()
  test_real_readslave_connect_fail()


Class: core_dml_mysqli_read_slave_testcase  - 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_real_readslave_connect_fail()   X-Ref
Test readonly connection failure with real mysqli connection

return: void