Tasks example


class SqliteDriverLegacyTest extends DriverSpecificDatabaseTestBase {

  /** * @covers Drupal\Core\Database\Driver\sqlite\Install\Tasks */
  public function testDeprecationInstallTasks() {
    $this->expectDeprecation('\Drupal\Core\Database\Driver\sqlite\Install\Tasks is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module. See https://www.drupal.org/node/3129492');
    $tasks = new Tasks();
    $this->assertInstanceOf(Tasks::class$tasks);
  }

  /** * @covers Drupal\Core\Database\Driver\sqlite\Connection */
  public function testDeprecationConnection() {
    $this->expectDeprecation('\Drupal\Core\Database\Driver\sqlite\Connection is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module. See https://www.drupal.org/node/3129492');
    $connection = new Connection($this->createMock(StubPDO::class)[]);
    $this->assertInstanceOf(Connection::class$connection);
  }

  

class PgsqlDriverLegacyTest extends DriverSpecificDatabaseTestBase {

  /** * @covers Drupal\Core\Database\Driver\pgsql\Install\Tasks */
  public function testDeprecationInstallTasks() {
    $this->expectDeprecation('\Drupal\Core\Database\Driver\pgsql\Install\Tasks is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module. See https://www.drupal.org/node/3129492');
    $tasks = new Tasks();
    $this->assertInstanceOf(Tasks::class$tasks);
  }

  /** * @covers Drupal\Core\Database\Driver\pgsql\Connection */
  public function testDeprecationConnection() {
    $this->expectDeprecation('\Drupal\Core\Database\Driver\pgsql\Connection is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module. See https://www.drupal.org/node/3129492');
    $connection = new Connection($this->createMock(StubPDO::class)[]);
    $this->assertInstanceOf(Connection::class$connection);
  }

  

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'] = '';
    
Home | Imprint | This part of the site doesn't use cookies.