You are here

public function TestDrupal6SqlBase::query in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\TestDrupal6SqlBase::query()
  2. 9 core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\d6\TestDrupal6SqlBase::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php, line 165
Contains \Drupal\Tests\migrate_drupal\Unit\source\d6\Drupal6SqlBaseTest.

Class

TestDrupal6SqlBase
Extends the Drupal6SqlBase abstract class.

Namespace

Drupal\Tests\migrate_drupal\Unit\source\d6

Code

public function query() {
  $query = $this->database
    ->select('system', 's')
    ->fields('s', [
    'filename',
    'name',
    'schema_version',
  ]);
  return $query;
}