public function InstallTest::testGetSchemaAtInstallTime in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Module/InstallTest.php \Drupal\Tests\system\Functional\Module\InstallTest::testGetSchemaAtInstallTime()
- 9 core/modules/system/tests/src/Functional/Module/InstallTest.php \Drupal\Tests\system\Functional\Module\InstallTest::testGetSchemaAtInstallTime()
Verify that module's schema can be used during module installation.
File
- core/
modules/ system/ tests/ src/ Functional/ Module/ InstallTest.php, line 32
Class
- InstallTest
- Tests the installation of modules.
Namespace
Drupal\Tests\system\Functional\ModuleCode
public function testGetSchemaAtInstallTime() {
// @see module_test_install()
$value = Database::getConnection()
->select('module_test', 'mt')
->fields('mt', [
'data',
])
->execute()
->fetchField();
$this
->assertSame('varchar', $value);
}