113 calls to Database::getConnection()

BigPipeTest::testBigPipe in core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
Tests BigPipe-delivered HTML responses when JavaScript is enabled.
BlockContentCreationTest::testFailedBlockCreation in core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
Verifies that a transaction rolls back the failed creation.
BootstrapConfigStorageFactory::getDatabaseStorage in core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php
Returns a Database configuration storage implementation.
BrokenCacheUpdateTest::testUpdate in core/modules/system/tests/src/Functional/UpdateSystem/BrokenCacheUpdateTest.php
Ensures that a broken or out-of-date element info cache is not used.
CastedIntFieldJoinTestBase::testBuildJoin in core/modules/views/tests/src/Kernel/Plugin/CastedIntFieldJoinTestBase.php
Tests base join functionality.
ConnectionTest::testCondition in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests that the method ::condition() returns a Condition object.
ConnectionTest::testConnectionClosing in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests the closing of a database connection.
ConnectionTest::testConnectionOptions in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests the connection options of the active database.
ConnectionTest::testConnectionRouting in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests that connections return appropriate connection objects.
ConnectionTest::testConnectionRoutingOverride in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests that connections return appropriate connection objects.
ConnectionTest::testPerTablePrefixOption in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests per-table prefix connection option.
ConnectionTest::testPrefixArrayOption in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests the prefix connection option in array form.
CronQueueTest::setUp in core/modules/system/tests/src/Kernel/System/CronQueueTest.php
DatabaseBackendTagTest::testTagInvalidations in core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php
DatabaseDriverUninstallValidator::validate in core/lib/Drupal/Core/Extension/DatabaseDriverUninstallValidator.php
Determines the reasons a module can not be uninstalled.
DatabaseStorageTest::testConcurrent in core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php
Tests asynchronous table creation.
DatabaseStorageTest::testExceptionIsThrownIfQueryFails in core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php
Tests that operations throw exceptions if the query fails.
DatabaseTestBase::setUp in core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php
DatabaseTestBase::setUp in core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php
DbCommandBase::getDatabaseConnection in core/lib/Drupal/Core/Command/DbCommandBase.php
Parse input options decide on a database.
DbDumpTest::setUp in core/modules/mysql/tests/src/Kernel/mysql/DbDumpTest.php
DbDumpTest::testScriptLoad in core/modules/mysql/tests/src/Kernel/mysql/DbDumpTest.php
Tests loading the script back into the database.
DbImportCommandTest::testDbImportCommand in core/modules/system/tests/src/Kernel/Scripts/DbImportCommandTest.php
Tests the command directly.
DriverSpecificConnectionUnitTestBase::setUp in core/tests/Drupal/KernelTests/Core/Database/DriverSpecificConnectionUnitTestBase.php
DriverSpecificConnectionUnitTestBase::testConnectionOpen in core/tests/Drupal/KernelTests/Core/Database/DriverSpecificConnectionUnitTestBase.php
Tests pdo options override.
DriverSpecificKernelTestBase::setUp in core/tests/Drupal/KernelTests/Core/Database/DriverSpecificKernelTestBase.php
DriverSpecificTransactionTestBase::testTransactionManagerFailureOnPendingStackItems in core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php
Tests TransactionManager failure.
drupal-8.update-test-schema-enabled.php in core/modules/system/tests/fixtures/update/drupal-8.update-test-schema-enabled.php
Partial database to mimic the installation of the update_test_schema module.
drupal-8.update-test-semver-update-n-enabled.php in core/modules/system/tests/fixtures/update/drupal-8.update-test-semver-update-n-enabled.php
Database to mimic the installation of the update_test_semver_update_n module.
drupal.daterange-formatter-settings-2827055.php in core/modules/datetime_range/tests/fixtures/update/drupal.daterange-formatter-settings-2827055.php
Provides database changes for testing the daterange formatter upgrade path.
drupal_install_system in core/includes/install.inc
Installs the system module.
entity-id-argument.php in core/modules/views/tests/fixtures/update/entity-id-argument.php
Test fixture.
EntityApiTest::assertCRUD in core/tests/Drupal/KernelTests/Core/Entity/EntityApiTest.php
Executes a test set for a defined entity type and user.
EntityQueryTest::testToString in core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
Tests __toString().
EntityUpdateInitialTest::setUp in core/modules/system/tests/src/Functional/UpdateSystem/EntityUpdateInitialTest.php
ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest::testReplicaDrupal8StyleDatabaseConnectionInSettingsPhp in core/tests/Drupal/FunctionalTests/ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest.php
Confirms that the replica database connection works.
FieldSqlStorageTest::testFieldLoad in core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
Tests field loading works correctly by inserting directly in the tables.
FieldSqlStorageTest::testFieldWrite in core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
Tests field saving works correctly by reading directly from the tables.
GarbageCollectionTest::testGarbageCollection in core/tests/Drupal/KernelTests/Core/KeyValueStore/GarbageCollectionTest.php
Tests garbage collection.
GenericModuleTestBase::testModuleGenericIssues in core/modules/system/tests/src/Functional/Module/GenericModuleTestBase.php
Checks some generic things about a module.
InstallerIsolationLevelExistingSettingsTest::testInstaller in core/modules/mysql/tests/src/Functional/InstallerIsolationLevelExistingSettingsTest.php
Verifies that isolation_level is not set in the database settings.
InstallerIsolationLevelNoDatabaseSettingsTest::testInstaller in core/modules/mysql/tests/src/Functional/InstallerIsolationLevelNoDatabaseSettingsTest.php
Verifies that the isolation_level was added to the database settings.
InstallerTest::testInstalled in core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php
Confirms that the installation succeeded.
KernelTestBaseTest::tearDown in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
MatcherDumperTest::testAddAdditionalRoutes in core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php
Confirms that we can add routes to the dumper when it already has some.
MatcherDumperTest::testAddRoutes in core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php
Confirms that we can add routes to the dumper.
MatcherDumperTest::testCreate in core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php
Confirms that the dumper can be instantiated successfully.
MatcherDumperTest::testDump in core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php
Confirm that we can dump a route collection to the database.
MatcherDumperTest::testMenuMasksGeneration in core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php
Tests the determination of the masks generation.
MigrateMessageControllerTest::testDetail in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateMessageControllerTest.php
Tests the detail pages for migrate messages.
MigrateMessageControllerTest::testOverview in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateMessageControllerTest.php
Tests the overview page for migrate messages.
MigrateTestBase::setUp in core/modules/migrate/tests/src/Kernel/MigrateTestBase.php
MigrateUpgradeTestBase::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php
NonPublicSchemaTest::setUp in core/modules/pgsql/tests/src/Kernel/pgsql/NonPublicSchemaTest.php
NoPreExistingSchemaUpdateTest::setUp in core/modules/system/tests/src/Functional/UpdateSystem/NoPreExistingSchemaUpdateTest.php
PathAliasTest::testAdminAlias in core/modules/path/tests/src/Functional/PathAliasTest.php
Tests alias functionality through the admin interfaces.
PathAliasTest::testNodeAlias in core/modules/path/tests/src/Functional/PathAliasTest.php
Tests alias functionality through the node interfaces.
PerformanceTestBase::prepareEnvironment in core/tests/Drupal/FunctionalJavascriptTests/PerformanceTestBase.php
Prepares the current environment for running the test.
pgsql_requirements in core/modules/pgsql/pgsql.install
Implements hook_requirements().
Query::__wakeup in core/lib/Drupal/Core/Database/Query/Query.php
Implements the magic __wakeup function to reconnect to the database.
QueueTest::testSystemQueue in core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php
Tests the System queue.
RelationshipJoinInTest::testRelationshipInQuery in core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinInTest.php
Tests the query result of a view with a relationship with an IN condition.
RelationshipTest::testRelationshipQuery in core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
Tests the query result of a view with a relationship.
RelationshipTest::testRelationshipRender in core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
Tests rendering of a view with a relationship.
ReplicaKillSwitchTest::testSystemInitIgnoresSecondaries in core/tests/Drupal/KernelTests/Core/Database/ReplicaKillSwitchTest.php
Tests database.replica_kill_switch service.
RevisionableContentEntityBaseTest::assertItemsTableCount in core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php
Asserts the amount of items on entity related tables.
RouteProviderTest::tearDown in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
RouteProviderTest::testCandidateOutlines in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms that the correct candidate outlines are generated.
RouteProviderTest::testDuplicateRoutePaths in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms that we find all routes with the same path.
RouteProviderTest::testEmptyPathCandidatesOutlines in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Don't fail when given an empty path.
RouteProviderTest::testExactPathMatch in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms that we can find routes with the exact incoming path.
RouteProviderTest::testGetAllRoutes in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms RouteProvider::getAllRoutes() extracts information correctly from the database.
RouteProviderTest::testGetRoutesByPatternWithLongPatterns in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Ensures that the routing system is capable of extreme long patterns.
RouteProviderTest::testMixedCasePaths in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms that we find routes using a case-insensitive path match.
RouteProviderTest::testOutlinePathMatch in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms that we can find routes whose pattern would match the request.
RouteProviderTest::testOutlinePathMatchDefaults in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms that we can find routes whose pattern would match the request.
RouteProviderTest::testOutlinePathMatchDefaultsCollision in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms that we can find routes whose pattern would match the request.
RouteProviderTest::testOutlinePathMatchDefaultsCollision2 in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms that we can find routes whose pattern would match the request.
RouteProviderTest::testOutlinePathMatchDefaultsCollision3 in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms that we can find multiple routes that match the request equally.
RouteProviderTest::testOutlinePathMatchTrailingSlash in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms that a trailing slash on the request does not result in a 404.
RouteProviderTest::testOutlinePathMatchZero in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Tests a route with a 0 as value.
RouteProviderTest::testOutlinePathNoMatch in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Confirms that an exception is thrown when no matching path is found.
RouteProviderTest::testRouteByName in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Tests RouteProvider::getRouteByName() & RouteProvider::getRoutesByNames().
RouteProviderTest::testRouteCaching in core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
Tests that route caching works.
SelectPagerDefaultTest::testElementNumbers in core/modules/system/tests/src/Functional/Database/SelectPagerDefaultTest.php
Confirms that every pager gets a valid, non-overlapping element ID.
SelectPagerDefaultTest::testInnerPagerQuery in core/modules/system/tests/src/Functional/Database/SelectPagerDefaultTest.php
Confirms that a pager query results with an inner pager query are valid.
SelectTest::testVulnerableComment in core/tests/Drupal/KernelTests/Core/Database/SelectTest.php
Tests query COMMENT system against vulnerabilities.
SessionTest::testSessionWrite in core/modules/system/tests/src/Functional/Session/SessionTest.php
Tests that sessions are only saved when necessary.
SimpletestTestRunResultsStorage::getConnection in core/lib/Drupal/Core/Test/SimpletestTestRunResultsStorage.php
Returns the database connection to use for inserting assertions.
SimpletestTestRunResultsStorageTest::setUp in core/tests/Drupal/KernelTests/Core/Test/SimpletestTestRunResultsStorageTest.php
SqlBase::setUpDatabase in core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
Gets a connection to the referenced database.
system_requirements in core/modules/system/system.install
Implements hook_requirements().
Tasks::checkBinaryOutput in core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php
Check Binary Output.
Tasks::checkExtensions in core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php
Generic function to check postgresql extensions.
Tasks::checkStandardConformingStrings in core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php
Ensures standard_conforming_strings setting is 'on'.
Tasks::connect in core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php
Checks if we can connect to the database.
Tasks::connect in core/lib/Drupal/Core/Database/Install/Tasks.php
Checks if we can connect to the database.
Tasks::getConnection in core/lib/Drupal/Core/Database/Install/Tasks.php
Returns the database connection.
Tasks::initializeDatabase in core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php
Make PostgreSQL Drupal friendly.
TaxonomyQueryAlterTest::testTaxonomyQueryAlter in core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php
Tests that appropriate tags are added when querying the database.
TemporaryQueryTestBase::getConnection in core/tests/Drupal/KernelTests/Core/Database/TemporaryQueryTestBase.php
Returns the connection.
TempStoreDatabaseTest::testSharedTempStore in core/tests/Drupal/KernelTests/Core/TempStore/TempStoreDatabaseTest.php
Tests the SharedTempStore API.
TermIndexTest::testTaxonomyIndex in core/modules/taxonomy/tests/src/Functional/TermIndexTest.php
Tests that the taxonomy index is maintained properly.
TestRunTest::setUp in core/tests/Drupal/KernelTests/Core/Test/TestRunTest.php
UpdatePathTestBaseTest::testUpdateHookN in core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
Tests that updates are properly run.
UpdatePostUpdateExceptionTest::setUp in core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateExceptionTest.php
UpdatePostUpdateFailingTest::setUp in core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php
UpdatePostUpdateTest::setUp in core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateTest.php
UpdateRemovedPostUpdateTest::setUp in core/modules/system/tests/src/Functional/UpdateSystem/UpdateRemovedPostUpdateTest.php
UpdateSchemaTest::testUpdateHooks in core/modules/system/tests/src/Functional/UpdateSystem/UpdateSchemaTest.php
Tests that update hooks are properly run.
UpsertTest::testUpsert in core/tests/Drupal/KernelTests/Core/Database/UpsertTest.php
Confirms that we can upsert (update-or-insert) records successfully.
UserDeleteTest::testUserDeleteMultiple in core/modules/user/tests/src/Kernel/UserDeleteTest.php
Tests deleting multiple users.
ViewUI::renderPreview in core/modules/views_ui/src/ViewUI.php

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