private function TasksTest::createTasksNoConnection in Drupal 10
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Database/Driver/mysql/install/TasksTest.php \Drupal\Tests\Core\Database\Driver\mysql\install\TasksTest::createTasksNoConnection()
Creates a Tasks object for testing, without connection.
Return value
\Drupal\mysql\Driver\Database\mysql\Install\Tasks
1 call to TasksTest::createTasksNoConnection()
- TasksTest::testNameWithNoConnection in core/
tests/ Drupal/ Tests/ Core/ Database/ Driver/ mysql/ install/ TasksTest.php - @covers ::name
File
- core/
tests/ Drupal/ Tests/ Core/ Database/ Driver/ mysql/ install/ TasksTest.php, line 68
Class
- TasksTest
- Tests the MySQL install tasks.
Namespace
Drupal\Tests\Core\Database\Driver\mysql\installCode
private function createTasksNoConnection() : Tasks {
return new class extends Tasks {
protected function isConnectionActive() {
return FALSE;
}
protected function getConnection() {
return NULL;
}
protected function t($string, array $args = [], array $options = []) {
return $string;
}
};
}