diff --git a/core/lib/Drupal/Core/Database/Connection.php b/core/lib/Drupal/Core/Database/Connection.php index 61f7266c..12fe2e51 100644 --- a/core/lib/Drupal/Core/Database/Connection.php +++ b/core/lib/Drupal/Core/Database/Connection.php @@ -193,7 +193,7 @@ public function __construct(\PDO $connection, array $connection_options) { // The 'transactions' option is deprecated. if (isset($connection_options['transactions'])) { - @trigger_error('Passing a \'transactions\' connection option to ' . __METHOD__ . ' is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. All database drivers should support transactions. See xxx', E_USER_DEPRECATED); + @trigger_error('Passing a \'transactions\' connection option to ' . __METHOD__ . ' is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. All database drivers must support transactions. See https://www.drupal.org/node/2278745', E_USER_DEPRECATED); unset($connection_options['transactions']); } @@ -1486,12 +1486,12 @@ public function clientVersion() { * TRUE if this connection supports transactions, FALSE otherwise. * * @deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. All database - * drivers should support transactions. + * drivers must support transactions. * - * @see xxx + * @see https://www.drupal.org/node/2278745 */ public function supportsTransactions() { - @trigger_error(__METHOD__ . ' is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. All database drivers should support transactions. See xxx', E_USER_DEPRECATED); + @trigger_error(__METHOD__ . ' is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. All database drivers should support transactions. See https://www.drupal.org/node/2278745', E_USER_DEPRECATED); return TRUE; } diff --git a/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php b/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php index 20979604..59d1813b 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php @@ -122,8 +122,8 @@ public function testConnectionOptions() { * Tests the deprecation of the 'transactions' connection option. * * @group legacy - * @expectedDeprecation Passing a 'transactions' connection option to Drupal\Core\Database\Connection::__construct is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. All database drivers should support transactions. See xxx - * @expectedDeprecation Drupal\Core\Database\Connection::supportsTransactions is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. All database drivers should support transactions. See xxx + * @expectedDeprecation Passing a 'transactions' connection option to Drupal\Core\Database\Connection::__construct is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. All database drivers must support transactions. See https://www.drupal.org/node/2278745 + * @expectedDeprecation Drupal\Core\Database\Connection::supportsTransactions is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. All database drivers must support transactions. See https://www.drupal.org/node/2278745 */ public function testTransactionsOptionDeprecation() { $connection_info = Database::getConnectionInfo('default');