122 string references to database in Drupal 10
- ArgumentDateTest::testWeekHandler in core/
modules/ views/ tests/ src/ Kernel/ Handler/ ArgumentDateTest.php - Tests the Week handler.
- ArgumentDateTest::testYearHandler in core/
modules/ views/ tests/ src/ Kernel/ Handler/ ArgumentDateTest.php - Tests the Year handler.
- ArgumentDateTest::testYearMonthHandler in core/
modules/ views/ tests/ src/ Kernel/ Handler/ ArgumentDateTest.php - Tests the YearMonth handler.
- AssignOwnerNode::create in core/
modules/ node/ src/ Plugin/ Action/ AssignOwnerNode.php - BackendCompilerPass::process in core/
lib/ Drupal/ Core/ DependencyInjection/ Compiler/ BackendCompilerPass.php - BackendCompilerPassTest::getDrivertestMysqlContainer in core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Compiler/ BackendCompilerPassTest.php - Creates a container with a DrivertestMysql database mock definition in it.
- BackendCompilerPassTest::getSqliteContainer in core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Compiler/ BackendCompilerPassTest.php - Creates a container with a sqlite database service in it.
- BlockCustomTranslationTest::providerSource in core/
modules/ block_content/ tests/ src/ Kernel/ Plugin/ migrate/ source/ d7/ BlockCustomTranslationTest.php - The data provider.
- BoxTranslationTest::providerSource in core/
modules/ block_content/ tests/ src/ Kernel/ Plugin/ migrate/ source/ d6/ BoxTranslationTest.php - The data provider.
- CacheCollectorTest::register in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ CacheCollectorTest.php - Registers test-specific services.
- ChainedFastBackendTest::createCacheBackend in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ ChainedFastBackendTest.php - Creates a new instance of ChainedFastBackend.
- CommentStorage::createInstance in core/
modules/ comment/ src/ CommentStorage.php - Instantiates a new instance of this entity handler.
- ConfigCRUDTest::testDataTypes in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigCRUDTest.php - Tests data type handling.
- ConfigImportAllTest::testInstallUninstall in core/
modules/ config/ tests/ src/ Functional/ ConfigImportAllTest.php - Tests that a fixed set of modules can be installed and uninstalled.
- Connection::attachDatabase in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Connection.php - Connection::createConnectionOptionsFromUrl in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Connection.php - Connection::createUrlFromConnectionOptions in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Connection.php - Connection::getFullQualifiedTableName in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Connection.php - Connection::open in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Connection.php - Connection::open in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Connection.php - Connection::open in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Connection.php - Connection::__destruct in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Connection.php - Destructor for the SQLite connection.
- ConnectionTest::testConnectionOptions in core/
tests/ Drupal/ KernelTests/ Core/ Database/ ConnectionTest.php - Tests the connection options of the active database.
- ConnectionTest::testCreateConnectionOptionsFromUrl in core/
tests/ Drupal/ Tests/ Core/ Database/ Driver/ sqlite/ ConnectionTest.php - @covers ::createConnectionOptionsFromUrl @dataProvider providerCreateConnectionOptionsFromUrl
- ContentTranslationConfigImportTest::testConfigImportUpdates in core/
modules/ content_translation/ tests/ src/ Kernel/ ContentTranslationConfigImportTest.php - Tests config import updates.
- CredentialForm::buildForm in core/
modules/ migrate_drupal_ui/ src/ Form/ CredentialForm.php - Form constructor.
- DatabaseBackendTest::createCacheBackend in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ DatabaseBackendTest.php - Creates a new instance of DatabaseBackend.
- DatabaseBackendTest::getNumRows in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ DatabaseBackendTest.php - Gets the number of rows in the test cache bin database table.
- DatabaseDriverProvidedByModuleTest::testDatabaseDriverIsProvidedByModuleButTheModuleIsNotEnabled in core/
modules/ system/ tests/ src/ Functional/ System/ DatabaseDriverProvidedByModuleTest.php - Tests that the status page shows the error message.
- DatabaseStorageTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Config/ Storage/ DatabaseStorageTest.php - DatabaseTestController::create in core/
modules/ system/ tests/ modules/ database_test/ src/ Controller/ DatabaseTestController.php - Instantiates a new instance of this class.
- DbCommandBase::configure in core/
lib/ Drupal/ Core/ Command/ DbCommandBase.php - DbCommandBase::getDatabaseConnection in core/
lib/ Drupal/ Core/ Command/ DbCommandBase.php - Parse input options decide on a database.
- DbDumpCommand::getFieldOrder in core/
lib/ Drupal/ Core/ Command/ DbDumpCommand.php - Gets field ordering for a given table.
- DbDumpCommandTest::setUp in core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbDumpCommandTest.php - DbDumpTest::register in core/
tests/ Drupal/ KernelTests/ Core/ Command/ DbDumpTest.php - Register a database cache backend rather than memory-based.
- DbImportCommandTest::testDbImportCommand in core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbImportCommandTest.php - Tests the command directly.
- DblogClearLogConfirmForm::create in core/
modules/ dblog/ src/ Form/ DblogClearLogConfirmForm.php - Instantiates a new instance of this class.
- DbLogController::create in core/
modules/ dblog/ src/ Controller/ DbLogController.php - Instantiates a new instance of this class.
- drupal6.php in core/
modules/ migrate_drupal/ tests/ fixtures/ drupal6.php - A database agnostic dump for testing purposes.
- DrupalKernel::handleException in core/
lib/ Drupal/ Core/ DrupalKernel.php - Converts an exception into a response.
- DrupalTest::testDatabase in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the database() method.
- EndOfTransactionQueriesTest::register in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ EndOfTransactionQueriesTest.php - Registers test-specific services.
- EntityBundleFieldTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityBundleFieldTest.php - EntityConverterLatestRevisionTest::testOptimizedConvert in core/
tests/ Drupal/ KernelTests/ Core/ ParamConverter/ EntityConverterLatestRevisionTest.php - Tests that pending revisions are loaded only when needed.
- EntityDefinitionUpdateTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDefinitionUpdateTest.php - EntityResourceTestBase::testGet in core/
modules/ rest/ tests/ src/ Functional/ EntityResource/ EntityResourceTestBase.php - Tests a GET request for an entity, plus edge cases to ensure good DX.
- ErrorTestController::create in core/
modules/ system/ tests/ modules/ error_test/ src/ Controller/ ErrorTestController.php - Instantiates a new instance of this class.
- ExportStorageManagerTest::testGetStorage in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ExportStorageManagerTest.php - Tests getting the export storage.
- ExportStorageManagerTest::testGetStorageLock in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ExportStorageManagerTest.php - Tests the export storage when it is locked.
- FieldableEntityDefinitionUpdateTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ FieldableEntityDefinitionUpdateTest.php - FloodTest::testDatabaseBackend in core/
modules/ system/ tests/ src/ Kernel/ System/ FloodTest.php - Tests flood control database backend.
- ForumTest::verifyForums in core/
modules/ forum/ tests/ src/ Functional/ ForumTest.php - Verifies that the logged in user has access to a forum node.
- HelpSearch::create in core/
modules/ help_topics/ src/ Plugin/ Search/ HelpSearch.php - ImportStorageTransformerTest::testTransformLocked in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ImportStorageTransformerTest.php - Tests that the import transformer throws an exception.
- ImportStorageTransformerTest::testTransformWhileImporting in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ImportStorageTransformerTest.php - Tests the import transformer during a running config import.
- InstallCommand::install in core/
lib/ Drupal/ Core/ Command/ InstallCommand.php - Installs Drupal with specified installation profile.
- KernelTestBase::installEntitySchema in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - Installs the storage schema for a specific entity type.
- KernelTestBase::installSchema in core/
tests/ Drupal/ KernelTests/ KernelTestBase.php - Installs database tables from a module schema definition.
- KernelTestBaseTest::testGetDatabaseConnectionInfoWithOutManualSetDbUrl in core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php - @covers ::getDatabaseConnectionInfo
- KernelTestBaseTest::testSetUp in core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php - @covers ::setUp
- KernelTestBaseTest::testSetUpDoesNotLeak in core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php - @covers ::setUp @depends testSetUp
- LayoutBuilderServiceProvider::register in core/
modules/ layout_builder/ src/ LayoutBuilderServiceProvider.php - LocaleStringTest::testStringCrudApi in core/
modules/ locale/ tests/ src/ Kernel/ LocaleStringTest.php - Tests CRUD API.
- LockTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Lock/ LockTest.php - MenuDeleteForm::create in core/
modules/ menu_ui/ src/ Form/ MenuDeleteForm.php - Instantiates a new instance of this class.
- MenuTreeStorageTest::doTestTable in core/
tests/ Drupal/ KernelTests/ Core/ Menu/ MenuTreeStorageTest.php - Ensures that table gets created on the fly.
- MenuTreeStorageTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Menu/ MenuTreeStorageTest.php - MigrateNodeTest::testNode in core/
modules/ node/ tests/ src/ Kernel/ Migrate/ d6/ MigrateNodeTest.php - Tests node migration from Drupal 6 to 8.
- MigrateSqlIdMapTest::testGetQualifiedMapTablePrefix in core/
modules/ migrate/ tests/ src/ Unit/ MigrateSqlIdMapTest.php - Tests the getQualifiedMapTable method with a prefixed database.
- MigrateSqlSourceTestBase::getDatabase in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateSqlSourceTestBase.php - Builds an in-memory SQLite database from a set of source data.
- MigrateSqlSourceTestBase::testSource in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateSqlSourceTestBase.php - Tests the source plugin against a particular data set.
- MigrateTestCase::getDatabase in core/
modules/ migrate/ tests/ src/ Unit/ MigrateTestCase.php - Gets an SQLite database connection object for use in tests.
- MigrateUpgradeTestBase::createMigrationConnection in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ MigrateUpgradeTestBase.php - Changes the database connection to the prefixed one.
- MigrationConfigurationTrait::createDatabaseStateSettings in core/
modules/ migrate_drupal/ src/ MigrationConfigurationTrait.php - Creates the necessary state entries for SqlBase::getDatabase() to work.
- ModuleInstaller::updateKernel in core/
lib/ Drupal/ Core/ Extension/ ModuleInstaller.php - Updates the kernel module list.
- ModuleInstallerTest::testCacheBinCleanup in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ ModuleInstallerTest.php - Tests cache bins defined by modules are removed when uninstalled.
- NodeCounter::create in core/
modules/ statistics/ src/ Plugin/ migrate/ destination/ NodeCounter.php - Creates an instance of the plugin.
- NodeNewComments::create in core/
modules/ comment/ src/ Plugin/ views/ field/ NodeNewComments.php - NodeRevisionDeleteForm::create in core/
modules/ node/ src/ Form/ NodeRevisionDeleteForm.php - Instantiates a new instance of this class.
- NodeSearch::create in core/
modules/ node/ src/ Plugin/ Search/ NodeSearch.php - PrefixInfoTest::testGetPrefixInfo in core/
tests/ Drupal/ KernelTests/ Core/ Database/ PrefixInfoTest.php - Tests that DatabaseSchema::getPrefixInfo() returns the right database.
- QueryBatchTest::getDatabase in core/
modules/ migrate/ tests/ src/ Kernel/ QueryBatchTest.php - Builds an in-memory SQLite database from a set of source data.
- QueryBatchTest::testQueryBatch in core/
modules/ migrate/ tests/ src/ Kernel/ QueryBatchTest.php - Tests query batch size.
- ResourceTestBase::testGetIndividual in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php - Tests GETting an individual resource, plus edge cases to ensure good DX.
- Roles::create in core/
modules/ user/ src/ Plugin/ views/ field/ Roles.php - Schema::buildTableNameCondition in core/
lib/ Drupal/ Core/ Database/ Schema.php - Build a condition to match a table name against a standard information_schema.
- Schema::buildTableNameCondition in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Schema.php - Build a condition to match a table name against a standard information_schema.
- Schema::getPrefixInfo in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Schema.php - Get information about the table and database name from the prefix.
- SelectTest::testRegularExpressionCondition in core/
tests/ Drupal/ KernelTests/ Core/ Database/ SelectTest.php - Tests that filter by 'REGEXP' and 'NOT REGEXP' works as expected.
- ShortcutSetDeleteForm::create in core/
modules/ shortcut/ src/ Form/ ShortcutSetDeleteForm.php - Instantiates a new instance of this class.
- ShortcutSetStorage::createInstance in core/
modules/ shortcut/ src/ ShortcutSetStorage.php - Instantiates a new instance of this entity handler.
- SiteSettingsForm::submitForm in core/
lib/ Drupal/ Core/ Installer/ Form/ SiteSettingsForm.php - Form submission handler.
- SiteSettingsForm::validateForm in core/
lib/ Drupal/ Core/ Installer/ Form/ SiteSettingsForm.php - Form validation handler.
- SqlBase::mapJoinable in core/
modules/ migrate/ src/ Plugin/ migrate/ source/ SqlBase.php - Checks if we can join against the map table.
- SqlBase::setUpDatabase in core/
modules/ migrate/ src/ Plugin/ migrate/ source/ SqlBase.php - Gets a connection to the referenced database.
- SqlBase::__sleep in core/
modules/ migrate/ src/ Plugin/ migrate/ source/ SqlBase.php - SqlBaseTest::sqlBaseTestProvider in core/
modules/ migrate/ tests/ src/ Unit/ SqlBaseTest.php - The data provider for SqlBase.
- SqlBaseTest::testConnectionTypes in core/
modules/ migrate/ tests/ src/ Kernel/ SqlBaseTest.php - Tests different connection types.
- SqlContentEntityStorage::createInstance in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php - Instantiates a new instance of this entity handler.
- StringFilter::create in core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php - StyleTableTest::testGrouping in core/
modules/ views/ tests/ src/ Functional/ Plugin/ StyleTableTest.php - Tests grouping by a field.
- Tasks::checkBinaryOutput in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Install/ Tasks.php - Check Binary Output.
- 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/ 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::getFormOptions in core/
lib/ Drupal/ Core/ Database/ Install/ Tasks.php - Returns driver specific configuration options.
- Tasks::getFormOptions in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Install/ Tasks.php - Returns driver specific configuration options.
- TrackerController::create in core/
modules/ tracker/ src/ Controller/ TrackerController.php - Instantiates a new instance of this class.
- TrackerNodeTest::providerSource in core/
modules/ tracker/ tests/ src/ Kernel/ Plugin/ migrate/ source/ d7/ TrackerNodeTest.php - The data provider.
- TrackerUserTest::providerSource in core/
modules/ tracker/ tests/ src/ Kernel/ Plugin/ migrate/ source/ d7/ TrackerUserTest.php - The data provider.
- UncaughtExceptionTest::testLostDatabaseConnection in core/
tests/ Drupal/ FunctionalTests/ Bootstrap/ UncaughtExceptionTest.php - Tests the case when the database connection is gone.
- UpdatePathTestBaseTest::testDatabaseLoaded in core/
tests/ Drupal/ FunctionalTests/ Update/ UpdatePathTestBaseTest.php - Tests that the database was properly loaded.
- UrlConversionTest::providerConvertDbUrlToConnectionInfo in core/
tests/ Drupal/ Tests/ Core/ Database/ UrlConversionTest.php - Data provider for testDbUrlToConnectionConversion().
- UrlConversionTest::providerGetConnectionInfoAsUrl in core/
tests/ Drupal/ Tests/ Core/ Database/ UrlConversionTest.php - Data provider for testGetConnectionInfoAsUrl().
- UserLoginHttpTest::resetFlood in core/
modules/ user/ tests/ src/ Functional/ UserLoginHttpTest.php - Resets all flood entries.
- UserSearch::create in core/
modules/ user/ src/ Plugin/ Search/ UserSearch.php - UserSelection::create in core/
modules/ user/ src/ Plugin/ EntityReferenceSelection/ UserSelection.php - UserUid::create in core/
modules/ comment/ src/ Plugin/ views/ argument/ UserUid.php - ViewsIntegrationTest::testFiltering in core/
modules/ dblog/ tests/ src/ Kernel/ Views/ ViewsIntegrationTest.php - Tests views can be filtered by severity and log type.
- ViewsIntegrationTest::testMessages in core/
modules/ dblog/ tests/ src/ Kernel/ Views/ ViewsIntegrationTest.php - Tests the messages escaping functionality.