function TestSqlBase::setQuery

Same name in other branches
  1. 8.9.x core/modules/migrate/tests/src/Kernel/SqlBaseTest.php \Drupal\Tests\migrate\Kernel\TestSqlBase::setQuery()
  2. 10 core/modules/migrate/tests/src/Kernel/SqlBaseTest.php \Drupal\Tests\migrate\Kernel\TestSqlBase::setQuery()
  3. 11.x 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

Class

TestSqlBase
A dummy source to help with testing SqlBase.

Namespace

Drupal\Tests\migrate\Kernel

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.