You are here

public function InstallTest::testGetSchemaAtInstallTime in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Module/InstallTest.php \Drupal\system\Tests\Module\InstallTest::testGetSchemaAtInstallTime()

Verify that drupal_get_schema() can be used during module installation.

File

core/modules/system/src/Tests/Module/InstallTest.php, line 30
Contains \Drupal\system\Tests\Module\InstallTest.

Class

InstallTest
Tests the installation of modules.

Namespace

Drupal\system\Tests\Module

Code

public function testGetSchemaAtInstallTime() {

  // @see module_test_install()
  $value = db_query("SELECT data FROM {module_test}")
    ->fetchField();
  $this
    ->assertIdentical($value, 'varchar');
}