function InstallTest::testGetSchemaAtInstallTime
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Module/InstallTest.php \Drupal\Tests\system\Functional\Module\InstallTest::testGetSchemaAtInstallTime()
- 8.9.x core/modules/system/tests/src/Functional/Module/InstallTest.php \Drupal\Tests\system\Functional\Module\InstallTest::testGetSchemaAtInstallTime()
- 10 core/modules/system/tests/src/Kernel/Module/InstallTest.php \Drupal\Tests\system\Kernel\Module\InstallTest::testGetSchemaAtInstallTime()
Verify that drupal_get_schema() can be used during module installation.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Module/ InstallTest.php, line 41
Class
- InstallTest
- Tests the installation of modules.
Namespace
Drupal\Tests\system\Kernel\ModuleCode
public function testGetSchemaAtInstallTime() : void {
// @see module_test_install()
$database = $this->container
->get('database');
$value = $database->select('module_test')
->fields('module_test', [
'data',
])
->execute()
->fetchField();
$this->assertEquals('varchar', $value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.