You are here

287 calls to Database::getConnection() in Drupal 10

ActiveTopicsBlock::buildForumQuery in core/modules/forum/src/Plugin/Block/ActiveTopicsBlock.php
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.
BrowserTestBase::cleanupEnvironment in core/tests/Drupal/Tests/BrowserTestBase.php
Clean up the test environment.
BulkDeleteTest::testDeleteField in core/modules/field/tests/src/Kernel/BulkDeleteTest.php
Verify that deleting a field leaves the field data items in the database and that the appropriate Field API functions can operate on the deleted data and field definition.
CacheTest::testNoneResultCaching in core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
Tests no caching.
CacheTest::testTimeResultCaching in core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
Tests time based caching.
ckeditor5-3259593.php in core/modules/ckeditor5/tests/fixtures/update/ckeditor5-3259593.php
Test fixture.
CommentIntegrationTest::testViewMode in core/modules/comment/tests/src/Kernel/CommentIntegrationTest.php
Tests view mode setting integration.
Connection::createDatabase in core/modules/pgsql/src/Driver/Database/pgsql/Connection.php
Overrides \Drupal\Core\Database\Connection::createDatabase().
Connection::createDatabase in core/modules/mysql/src/Driver/Database/mysql/Connection.php
Overrides \Drupal\Core\Database\Connection::createDatabase().
ConnectionFailureTest::testConnectionFailureLogging in core/modules/dblog/tests/src/Kernel/ConnectionFailureTest.php
Tests logging of connection failures.
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::testMultipleStatements in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Ensure that you cannot prepare multiple statements.
ConnectionTest::testMultipleStatementsForNewPhp in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Ensure that you cannot execute multiple statements on MySQL.
ConnectionTest::testMultipleStatementsQuery in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Ensure that you cannot execute multiple statements in a query.
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.
ConnectionUnitTest::getConnectionId in core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
Returns the connection ID of the current test connection.
ConnectionUnitTest::setUp in core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
ConnectionUnitTest::testConnectionOpen in core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
Tests pdo options override.
ConnectionUnitTest::testOpenClose in core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
Tests Database::closeConnection() without query.
ConnectionUnitTest::testOpenQueryClose in core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
Tests Database::closeConnection() with a query.
ConnectionUnitTest::testOpenQueryPrefetchClose in core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
Tests Database::closeConnection() with a query and custom prefetch method.
ConnectionUnitTest::testOpenSelectQueryClose in core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
Tests Database::closeConnection() with a select query.
ContentTranslationSettingsApiTest::testSettingsApi in core/modules/content_translation/tests/src/Kernel/ContentTranslationSettingsApiTest.php
Tests that enabling translation via the API triggers schema updates.
CronQueueTest::setUp in core/modules/system/tests/src/Kernel/System/CronQueueTest.php
DatabaseBackendTagTest::testTagInvalidations in core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php
DatabaseDriverProvidedByModuleTest::testDatabaseDriverIsProvidedByModuleButTheModuleIsNotEnabled in core/modules/system/tests/src/Functional/System/DatabaseDriverProvidedByModuleTest.php
Tests that the status page shows the error message.
DatabaseDriverUninstallValidator::validate in core/lib/Drupal/Core/Extension/DatabaseDriverUninstallValidator.php
DatabaseExceptionWrapperTest::testPrepareStatementFailOnExecution in core/tests/Drupal/KernelTests/Core/Database/DatabaseExceptionWrapperTest.php
Tests Connection::prepareStatement exceptions on execution.
DatabaseExceptionWrapperTest::testPrepareStatementFailOnPreparation in core/tests/Drupal/KernelTests/Core/Database/DatabaseExceptionWrapperTest.php
Tests Connection::prepareStatement exceptions on preparation.
DatabaseExceptionWrapperTest::testQueryThrowsDatabaseExceptionWrapperException in core/tests/Drupal/KernelTests/Core/Database/DatabaseExceptionWrapperTest.php
Tests the expected database exception thrown for inexistent tables.
DatabaseStorageTest::delete in core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php
DatabaseStorageTest::insert in core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php
DatabaseStorageTest::read in core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php
DatabaseStorageTest::testConcurrent in core/tests/Drupal/KernelTests/Core/KeyValueStore/DatabaseStorageTest.php
Tests asynchronous table creation.
DatabaseStorageTest::update in core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php
DatabaseTestBase::addSampleData in core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php
Sets up our sample data.
DatabaseTestBase::setUp in core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php
DatabaseTestForm::buildForm in core/modules/system/tests/modules/database_test/src/Form/DatabaseTestForm.php
Form constructor.
DatabaseVersionCheckUpdateTest::testUpdate in core/modules/system/tests/src/Functional/Update/DatabaseVersionCheckUpdateTest.php
Tests that updates fail if the database does not meet the minimum version.
DbCommandBase::getDatabaseConnection in core/lib/Drupal/Core/Command/DbCommandBase.php
Parse input options decide on a database.
DbCommandBaseTest::testPrefix in core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
Tests specifying a prefix for different connections.
DbDumpCommandTest::setUp in core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php
DbDumpTest::getTableIndexes in core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php
Returns indexes for a given table.
DbDumpTest::getTableSchema in core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php
Helper function to get a simplified schema for a given table.
DbDumpTest::setUp in core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php
DbDumpTest::testScriptLoad in core/tests/Drupal/KernelTests/Core/Command/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.
DBLogResource::get in core/modules/dblog/src/Plugin/rest/resource/DBLogResource.php
Responds to GET requests.
DbLogResourceTest::testWatchdog in core/modules/dblog/tests/src/Functional/DbLogResourceTest.php
Writes a log messages and retrieves it via the REST API.
DbLogTest::doUser in core/modules/dblog/tests/src/Functional/DbLogTest.php
Generates and then verifies some user events.
DbLogTest::runCron in core/modules/dblog/tests/src/Kernel/DbLogTest.php
Runs cron and returns number of new log entries.
DbLogTest::test403LogEventPage in core/modules/dblog/tests/src/Functional/DbLogTest.php
Tests that a 403 event is logged with the exception triggering it.
DbLogTest::testBacktrace in core/modules/dblog/tests/src/Functional/DbLogTest.php
Tests that the details page displays correctly backtrace.
DbLogTest::testDBLogAddAndClear in core/modules/dblog/tests/src/Functional/DbLogTest.php
Tests the addition and clearing of log events through the admin interface.
DbLogTest::testDbLogCron in core/modules/dblog/tests/src/Kernel/DbLogTest.php
Tests that cron correctly applies the database log row limit.
DbLogTest::testFilter in core/modules/dblog/tests/src/Functional/DbLogTest.php
Tests the database log filter functionality at admin/reports/dblog.
DbLogTest::testLogEventPage in core/modules/dblog/tests/src/Functional/DbLogTest.php
Tests individual log event page.
DbLogTest::testLogEventPageWithMissingInfo in core/modules/dblog/tests/src/Functional/DbLogTest.php
Tests individual log event page with missing log attributes.
DbLogTest::testOverviewLinks in core/modules/dblog/tests/src/Functional/DbLogTest.php
Make sure HTML tags are filtered out in the log overview links.
DbLogTest::testTemporaryUser in core/modules/dblog/tests/src/Functional/DbLogTest.php
Tests that the details page displays correctly for a temporary user.
DbLogTest::verifyBreadcrumbs in core/modules/dblog/tests/src/Functional/DbLogTest.php
Generates and then verifies breadcrumbs.
DbLogTest::verifyLinkEscaping in core/modules/dblog/tests/src/Functional/DbLogTest.php
Tests the escaping of links in the operation row of a database log detail page.
DbLogTest::verifyReports in core/modules/dblog/tests/src/Functional/DbLogTest.php
Confirms that database log reports are displayed at the correct paths.
DeleteTest::testInUse in core/modules/file/tests/src/Kernel/DeleteTest.php
Tries deleting a file that is in use.
drupal-8.update-schema-version-int.php in core/modules/system/tests/fixtures/update/drupal-8.update-schema-version-int.php
Database to mimic the installation of the update_test_schema module.
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.
drupal6.php in core/modules/migrate_drupal/tests/fixtures/drupal6.php
A database agnostic dump for testing purposes.
drupal7.php in core/modules/tracker/tests/fixtures/drupal7.php
A database agnostic dump for testing purposes.
drupal7.php in core/modules/rdf/tests/fixtures/drupal7.php
A database agnostic dump for testing purposes.
drupal7.php in core/modules/migrate_drupal/tests/fixtures/drupal7.php
A database agnostic dump for testing purposes.
drupal_install_system in core/includes/install.inc
Installs the system module.
EntityApiTest::assertCRUD in core/tests/Drupal/KernelTests/Core/Entity/EntityApiTest.php
Executes a test set for a defined entity type and user.
EntityDefinitionUpdateTest::testCreateFieldAndIndexOnSharedTable in core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
Ensures that a new field and index on a shared table are created.
EntityDefinitionUpdateTest::testCreateIndexUsingEntityStorageSchemaWithData in core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
Ensures that a new entity level index is created when data exists.
EntityDisplayTest::testComponentDependencies in core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
Tests components dependencies additions.
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::setUp in core/tests/Drupal/FunctionalTests/ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest.php
ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest::testExistingDrupal8StyleDatabaseConnectionInSettingsPhp in core/tests/Drupal/FunctionalTests/ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest.php
Confirms that the site works with Drupal 8 style database connection array.
FieldDataCountTest::testEntityCountAndHasData in core/modules/field/tests/src/Kernel/FieldDataCountTest.php
Tests entityCount() and hadData() methods.
FieldSqlStorageTest::testFieldLoad in core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
Tests field loading works correctly by inserting directly in the tables.
FieldSqlStorageTest::testFieldUpdateFailure in core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
Tests that failure to create fields is handled gracefully.
FieldSqlStorageTest::testFieldUpdateIndexesWithData in core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
Tests adding and removing indexes while data is present.
FieldSqlStorageTest::testFieldWrite in core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
Tests field saving works correctly by reading directly from the tables.
FileFieldRevisionTest::testRevisions in core/modules/file/tests/src/Functional/FileFieldRevisionTest.php
Tests creating multiple revisions of a node and managing attached files.
GarbageCollectionTest::testGarbageCollection in core/tests/Drupal/KernelTests/Core/KeyValueStore/GarbageCollectionTest.php
Tests garbage collection.
HistoryTimestampTest::testHandlers in core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php
Tests the handlers.
hook_update_N in core/lib/Drupal/Core/Extension/module.api.php
Perform a single update between minor versions.
InstallerDatabaseErrorMessagesTest::setUpSettings in core/tests/Drupal/FunctionalTests/Installer/InstallerDatabaseErrorMessagesTest.php
Installer step: Configure settings.
InstallerExistingConfigTestBase::prepareEnvironment in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php
Prepares the current environment for running the test.
InstallerExistingSettingsTest::visitInstaller in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsTest.php
Visits the interactive installer.
InstallerNonDefaultDatabaseDriverTest::setUpSettings in core/tests/Drupal/FunctionalTests/Installer/InstallerNonDefaultDatabaseDriverTest.php
Installer step: Configure settings.
InstallerTest::testInstalled in core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php
Confirms that the installation succeeded.
InstallerTranslationTest::setUpSettings in core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php
Installer step: Configure settings.
InstallTest::testGetSchemaAtInstallTime in core/modules/system/tests/src/Functional/Module/InstallTest.php
Verify that module's schema can be used during module installation.
install_begin_request in core/includes/install.core.inc
Begins an installation request, modifying the installation state as needed.
install_verify_database_ready in core/includes/install.core.inc
Verify that the database is ready (no existing Drupal installation).
IpAddressBlockingTest::testIPAddressValidation in core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
Tests various user input to confirm correct validation and saving of data.
JoinTest::testBasePlugin in core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
Tests the join plugin base.
JoinTest::testExamplePlugin in core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
Tests an example join plugin.
KernelTestBase::tearDown in core/tests/Drupal/KernelTests/KernelTestBase.php
KernelTestBaseDatabaseDriverModuleTest::testDatabaseDriverModuleEnabled in core/tests/Drupal/KernelTests/KernelTestBaseDatabaseDriverModuleTest.php
@covers ::bootEnvironment
KernelTestBaseTest::tearDown in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
KernelTestBaseTest::testDatabaseDriverModuleEnabled in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
@covers ::bootEnvironment
LargeQueryTest::testMaxAllowedPacketQueryTruncating in core/tests/Drupal/KernelTests/Core/Database/LargeQueryTest.php
Tests truncation of messages when max_allowed_packet exception occurs.
LocaleImportFunctionalTest::testStandalonePoFile in core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
Tests import of standalone .po files.
LocalePluralFormatTest::testPluralEditDateFormatter in core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php
Tests plural editing of DateFormatter strings.
LocalePluralFormatTest::testPluralEditExport in core/modules/locale/tests/src/Functional/LocalePluralFormatTest.php
Tests plural editing and export functionality.
LocaleTranslationUiTest::testJavaScriptTranslation in core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php
Adds a language and checks that the JavaScript translation files are properly created and rebuilt on deletion.
LocaleUpdateBase::assertTranslation in core/modules/locale/tests/src/Functional/LocaleUpdateBase.php
Checks the translation of a string.
LocaleUpdateBase::setCurrentTranslations in core/modules/locale/tests/src/Functional/LocaleUpdateBase.php
Setup existing translations in the database and set up the status of existing translations.
LocaleUpdateCronTest::testUpdateCron in core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php
Tests interface translation update using cron.
LocaleUpdateTest::testEnableLanguage in core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
Tests automatic translation import when a language is added.
LoggingTest::testEnableLogging in core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
Tests that we can log the existence of a query.
LoggingTest::testEnableMultiConnectionLogging in core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
Tests that we can log queries separately on different connections.
LoggingTest::testEnableTargetLogging in core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
Tests logging queries against multiple targets on the same connection.
LoggingTest::testEnableTargetLoggingNoTarget in core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
Tests that logs to separate targets use the same connection properly.
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.
MediaStandardProfileTest::testMediaSources in core/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php
Tests all media sources in one method.
MediaTest::testErrorMessages in core/modules/ckeditor/tests/src/FunctionalJavascript/MediaTest.php
Tests that failed media embed preview requests inform the end user.
MediaTest::testErrorMessages in core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php
Tests that failed media embed preview requests inform the end user.
MigrateDateFormatTest::testDateFormats in core/modules/system/tests/src/Kernel/Migrate/d6/MigrateDateFormatTest.php
Tests the Drupal 6 date formats to Drupal 8 migration.
MigrateDrupalTestBase::loadFixture in core/modules/migrate_drupal/tests/src/Kernel/MigrateDrupalTestBase.php
Loads a database fixture into the source database connection.
MigrateFieldInstanceLabelDescriptionTest::migrateDumpAlter in core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php
Allows tests to alter dumps after they have loaded.
MigrateFieldInstanceLabelDescriptionTest::migrateDumpAlter in core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceLabelDescriptionTest.php
Allows tests to alter dumps after they have loaded.
MigrateFileTest::migrateDumpAlter in core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php
Allows tests to alter dumps after they have loaded.
MigrateFileTest::setUp in core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php
MigrateFileTest::testFiles in core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php
Tests the Drupal 6 files to Drupal 8 migration.
MigrateFilterFormatTest::migrateDumpAlter in core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterFormatTest.php
Allows tests to alter dumps after they have loaded.
MigrateImageCacheTest::testInvalidCropValues in core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php
Tests that missing action's causes failures.
MigrateImageCacheTest::testMissingEffectPlugin in core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php
Tests that missing actions causes failures.
MigrateLanguageContentCommentSettingsNoEntityTranslationTest::migrateDumpAlter in core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php
Allows tests to alter dumps after they have loaded.
MigrateMenuTest::testMenu in core/modules/system/tests/src/Kernel/Migrate/d6/MigrateMenuTest.php
Tests the Drupal 6 menu to Drupal 8 migration.
MigrateMenuTest::testMenu in core/modules/system/tests/src/Kernel/Migrate/d7/MigrateMenuTest.php
Tests the Drupal 7 menu to Drupal 8 migration.
MigrateNodeTest::rerunMigration in core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTest.php
Execute the migration a second time.
MigrateNodeTest::testNode in core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTest.php
Tests node migration from Drupal 6 to 8.
MigrateSearchPageTest::testSearchPage in core/modules/search/tests/src/Kernel/Migrate/d6/MigrateSearchPageTest.php
Tests Drupal 6 search settings to Drupal 8 search page entity migration.
MigrateSearchPageTest::testSearchPage in core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php
Tests migration of search status and settings to search page entity.
MigrateTestBase::setUp in core/modules/migrate/tests/src/Kernel/MigrateTestBase.php
MigrateTrackerNodeTest::testMigrateTrackerNode in core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerNodeTest.php
Tests migration of tracker node table.
MigrateTrackerUserTest::testMigrateTrackerUser in core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerUserTest.php
Tests migration of tracker user table.
MigrateUpgradeTestBase::loadFixture in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php
Loads a database fixture into the source database connection.
MigrateUpgradeTestBase::setUp in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php
MigrateUrlAliasTest::testUrlAlias in core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php
Tests the url alias migration.
MigrateUserConfigsTest::testUserMail in core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserConfigsTest.php
Tests migration of user variables to user.mail.yml.
MigrateUserRoleTest::assertEntity in core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserRoleTest.php
Asserts aspects of a user role config entity.
MigrateUserSettingsTest::testMigration in core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserSettingsTest.php
Tests the migration.
MigrateUserTest::testUser in core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserTest.php
Tests the Drupal6 user to Drupal 8 migration.
MigrateUserTest::testUser in core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserTest.php
Tests the Drupal 7 user to Drupal 8 migration.
MigrationConfigurationTrait::getConnection in core/modules/migrate_drupal/src/MigrationConfigurationTrait.php
Gets the database connection for the source Drupal database.
ModuleInstallerTest::testRouteRebuild in core/tests/Drupal/KernelTests/Core/Extension/ModuleInstallerTest.php
Tests that routes are rebuilt during install and uninstall of modules.
ModuleTestBase::assertLogMessage in core/modules/system/tests/src/Functional/Module/ModuleTestBase.php
Verify a log entry was entered for a module's status change.
ModuleTestBase::assertModuleTablesDoNotExist in core/modules/system/tests/src/Functional/Module/ModuleTestBase.php
Assert that none of the tables defined in a module's hook_schema() exist.
ModuleTestBase::assertModuleTablesExist in core/modules/system/tests/src/Functional/Module/ModuleTestBase.php
Assert that all tables defined in a module's hook_schema() exist.
module_test_install in core/modules/system/tests/modules/module_test/module_test.install
Implements hook_install().
mysql_requirements in core/modules/mysql/mysql.install
Implements hook_requirements().
NewTopicsBlock::buildForumQuery in core/modules/forum/src/Plugin/Block/NewTopicsBlock.php
NextIdTest::testDbNextIdClosedConnection in core/tests/Drupal/KernelTests/Core/Database/NextIdTest.php
Tests that sequences table clear up works when a connection is closed.
NodeAccessLanguageAwareCombinationTest::testNodeAccessLanguageAwareCombination in core/modules/node/tests/src/Kernel/NodeAccessLanguageAwareCombinationTest.php
Tests node access and node access queries with multiple node languages.
NodeAccessLanguageAwareTest::testNodeAccessLanguageAware in core/modules/node/tests/src/Kernel/NodeAccessLanguageAwareTest.php
Tests node access and node access queries with multiple node languages.
NodeAccessLanguageTest::testNodeAccessQueryTag in core/modules/node/tests/src/Kernel/NodeAccessLanguageTest.php
Tests select queries with a 'node_access' tag and langcode metadata.
NodeAccessRecordsTest::testNodeAccessRecords in core/modules/node/tests/src/Kernel/NodeAccessRecordsTest.php
Creates a node and tests the creation of node access rules.
NodeAdminTest::testContentAdminSort in core/modules/node/tests/src/Functional/NodeAdminTest.php
Tests that the table sorting works on the content admin pages.
NodeBlockFunctionalTest::testRecentNodeBlock in core/modules/node/tests/src/Functional/NodeBlockFunctionalTest.php
Tests the recent comments block.
NodeCreationTest::getWatchdogIdsForTestExceptionRollback in core/modules/node/tests/src/Functional/NodeCreationTest.php
Gets the watchdog IDs of the records with the rollback exception message.
NodeRevisionsAllTest::testRevisions in core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
Checks node revision operations.
NodeRevisionsTest::testRevisions in core/modules/node/tests/src/Functional/NodeRevisionsTest.php
Checks node revision related operations.
NodeTermData::query in core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php
Called to implement a relationship in a query.
node_install in core/modules/node/node.install
Implements hook_install().
NoPreExistingSchemaUpdateTest::setUp in core/modules/system/tests/src/Functional/UpdateSystem/NoPreExistingSchemaUpdateTest.php
PagerTestController::buildTestTable in core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
Builds a render array for a pageable test table.
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.
PrefixInfoTest::testGetPrefixInfo in core/tests/Drupal/KernelTests/Core/Database/PrefixInfoTest.php
Tests that DatabaseSchema::getPrefixInfo() returns the right database.
PreviewTest::enableViewsTestModule in core/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php
Sets up the views_test_data.module.
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.
SchemaTest::setUp in core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
SchemaTest::testFindTables in core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
Tests the findTables() method.
SearchMatchTest::_testQueries in core/modules/search/tests/src/Kernel/SearchMatchTest.php
Run predefine queries looking for indexed terms.
SearchMultilingualEntityTest::assertDatabaseCounts in core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php
Checks actual database counts of items in the search index.
SearchMultilingualEntityTest::testMultilingualSearch in core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php
Tests the indexing throttle and search results with multilingual nodes.
SearchNodeUpdateAndDeletionTest::testSearchIndexUpdateOnNodeDeletion in core/modules/search/tests/src/Functional/SearchNodeUpdateAndDeletionTest.php
Tests that the search index info is updated when a node is deleted.
SearchRankingTest::testRankings in core/modules/search/tests/src/Functional/SearchRankingTest.php
SelectComplexTest::testCountQueryRemovals in core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php
Tests that countQuery removes 'all_fields' statements and ordering clauses.
SelectComplexTest::testJoinSubquery in core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php
Tests that we can join on a query.
SelectPagerDefaultTest::testElementNumbers in core/modules/system/tests/src/Functional/Database/SelectPagerDefaultTest.php
Confirms that every pager gets a valid, non-overlapping element ID.
SelectPagerDefaultTest::testEvenPagerQuery in core/modules/system/tests/src/Functional/Database/SelectPagerDefaultTest.php
Confirms that a pager query returns the correct results.
SelectPagerDefaultTest::testHavingPagerQuery in core/modules/system/tests/src/Functional/Database/SelectPagerDefaultTest.php
Confirms that a paging query results with a having expression are valid.
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.
SelectPagerDefaultTest::testOddPagerQuery in core/modules/system/tests/src/Functional/Database/SelectPagerDefaultTest.php
Confirms that a pager query returns the correct results.
SelectTest::testVulnerableComment in core/tests/Drupal/KernelTests/Core/Database/SelectTest.php
Tests query COMMENT system against vulnerabilities.
SessionTest::testEmptySessionID in core/modules/system/tests/src/Functional/Session/SessionTest.php
Tests that empty session IDs are not allowed.
SessionTest::testSessionWrite in core/modules/system/tests/src/Functional/Session/SessionTest.php
Tests that sessions are only saved when necessary.
SettingsTest::testEditUI in core/modules/views_ui/tests/src/Functional/SettingsTest.php
Tests the settings for the edit ui.
ShortcutSetStorage::countAssignedUsers in core/modules/shortcut/src/ShortcutSetStorage.php
Get the number of users who have this set assigned to them.
SqlBase::setUpDatabase in core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
Gets a connection to the referenced database.
SqlTest::testFailEnsureTables in core/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlTest.php
Tests exception is thrown in ensureTables fails.
StatisticsAdminTest::testDeleteNode in core/modules/statistics/tests/src/Functional/StatisticsAdminTest.php
Tests that when a node is deleted, the node counter is deleted too.
StatisticsAdminTest::testExpiredLogs in core/modules/statistics/tests/src/Functional/StatisticsAdminTest.php
Tests that cron clears day counts and expired access logs.
StorageTest::testImmutableFormLegacyProtection in core/modules/system/tests/src/Functional/Form/StorageTest.php
Verify that existing contrib code cannot overwrite immutable form state.
StyleTableTest::testNumericFieldVisible in core/modules/views/tests/src/Functional/Plugin/StyleTableTest.php
Tests that a number with the value of "0" is displayed in the table.
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::checkBinaryOutputSuccess in core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php
Verify that a binary data roundtrip returns the original string.
Tasks::checkEncoding in core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php
Check encoding is UTF8.
Tasks::checkEngineVersion in core/lib/Drupal/Core/Database/Install/Tasks.php
Checks the engine version.
Tasks::checkEngineVersion in core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php
Checks the engine version.
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::checkStandardConformingStringsSuccess in core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php
Verifies the standard_conforming_strings setting.
Tasks::connect in core/lib/Drupal/Core/Database/Install/Tasks.php
Checks if we can connect to the database.
Tasks::connect in core/modules/sqlite/src/Driver/Database/sqlite/Install/Tasks.php
Checks if we can connect to the database.
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/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php
Checks if we can connect to the database.
Tasks::ensureInnoDbAvailable in core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php
Ensure that InnoDB is available.
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.
Tasks::runTestQuery in core/lib/Drupal/Core/Database/Install/Tasks.php
Ensures the database can execute commands with the current user.
TaxonomyQueryAlterTest::testTaxonomyQueryAlter in core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php
Tests that appropriate tags are added when querying the database.
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.
TestDatabase::getConnection in core/lib/Drupal/Core/Test/TestDatabase.php
Returns the database connection to the site under test.
TestSiteApplicationTest::testInstallInDifferentLanguage in core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php
@coversNothing
TestSiteApplicationTest::testInstallScript in core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php
@coversNothing
TestSiteApplicationTest::testInstallWithFileWithNoClass in core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php
@coversNothing
TestSiteApplicationTest::testInstallWithNonExistingFile in core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php
@coversNothing
TestSiteApplicationTest::testInstallWithNonSetupClass in core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php
@coversNothing
TestSiteTearDownCommand::tearDown in core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php
Removes a given instance by deleting all the database tables and files.
TrackerTest::testTrackerCronIndexing in core/modules/tracker/tests/src/Functional/TrackerTest.php
Tests that existing nodes are indexed by cron.
UpdatePathTestBaseTest::testUpdateHookN in core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
Tests that updates are properly run.
UpdatePostUpdateFailingTest::setUp in core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php
UpdatePostUpdateTest::setUp in core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateTest.php
UpdateSchemaTest::testUpdateHooks in core/modules/system/tests/src/Functional/UpdateSystem/UpdateSchemaTest.php
Tests that update hooks are properly run.
update_test_schema.install in core/modules/system/tests/modules/update_test_schema/update_test_schema.install
Update hooks and schema definition for the update_test_schema module.
UpsertTest::testUpsert in core/tests/Drupal/KernelTests/Core/Database/UpsertTest.php
Confirms that we can upsert (update-or-insert) records successfully.
UrlAlterFunctionalTest::testUrlAlter in core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php
Tests that URL altering works and that it occurs in the correct order.
UsageTest::createTempFiles in core/modules/file/tests/src/Kernel/UsageTest.php
Create files for all the possible combinations of age and status.
UsageTest::doTestRemoveUsage in core/modules/file/tests/src/Kernel/UsageTest.php
Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::delete().
UsageTest::testAddUsage in core/modules/file/tests/src/Kernel/UsageTest.php
Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::add().
UsageTest::testGetUsage in core/modules/file/tests/src/Kernel/UsageTest.php
Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::listUsage().
UserDeleteTest::testUserDeleteMultiple in core/modules/user/tests/src/Kernel/UserDeleteTest.php
Tests deleting multiple users.
UserPasswordResetTest::setUp in core/modules/user/tests/src/Functional/UserPasswordResetTest.php
UserPasswordResetTest::setUp in core/modules/user/tests/src/FunctionalJavascript/UserPasswordResetTest.php
UserPasswordResetTest::testResetImpersonation in core/modules/user/tests/src/Functional/UserPasswordResetTest.php
Make sure that users cannot forge password reset URLs of other users.
UserPictureTest::testCreateDeletePicture in core/modules/user/tests/src/Functional/UserPictureTest.php
Tests creation, display, and deletion of user pictures.
UserUid::query in core/modules/comment/src/Plugin/views/filter/UserUid.php
Add this filter to the query.
ViewsKernelTestBase::setUpFixtures in core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php
Sets up the configuration and schema of views and views_test_data modules.
ViewTestBase::enableViewsTestModule in core/modules/views/tests/src/Functional/ViewTestBase.php
Sets up the views_test_data.module.
ViewUI::renderPreview in core/modules/views_ui/src/ViewUI.php