You are here

public function TestSqlBase::setQuery in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Kernel/SqlBaseTest.php \Drupal\Tests\migrate\Kernel\TestSqlBase::setQuery()
  2. 9 core/modules/migrate/tests/src/Kernel/SqlBaseTest.php \Drupal\Tests\migrate\Kernel\TestSqlBase::setQuery()

Sets the query to execute.

Parameters

\Drupal\Core\Database\Query\SelectInterface $query: The query to execute.

File

core/modules/migrate/tests/src/Kernel/SqlBaseTest.php, line 252
Contains \Drupal\Tests\migrate\Kernel\SqlBaseTest.

Class

TestSqlBase
A dummy source to help with testing SqlBase.

Namespace

Drupal\Tests\migrate\Kernel

Code

public function setQuery(SelectInterface $query) {
  $this->query = $query;
}