class MysqlDriverLegacyTest extends DriverSpecificDatabaseTestBase
{ /**
* @covers Drupal\Core\Database\Driver\mysql\Install\Tasks
*/
public function testDeprecationInstallTasks() { $this->
expectDeprecation('\Drupal\Core\Database\Driver\mysql\Install\Tasks is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL database driver has been moved to the mysql module. See https://www.drupal.org/node/3129492'
);
$tasks =
new Tasks();
$this->
assertInstanceOf(Tasks::
class,
$tasks);
} /**
* @covers Drupal\Core\Database\Driver\mysql\Connection
*/
public function testDeprecationConnection() { $this->
expectDeprecation('\Drupal\Core\Database\Driver\mysql\Connection is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL database driver has been moved to the mysql module. See https://www.drupal.org/node/3129492'
);
// @todo https://www.drupal.org/project/drupal/issues/3251084 Remove setting
// the $options parameter.
$options['init_commands'
]['sql_mode'
] = '';