You are here

public function TestSqlBase::setQuery in Drupal 9

Same name and namespace in other branches
  1. 8 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 248
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;
}