function Mysql8RequirePrimaryKeyUpdateTest::testDatabaseLoaded
Same name in other branches
- 10 core/modules/mysql/tests/src/Functional/Mysql8RequirePrimaryKeyUpdateTest.php \Drupal\Tests\mysql\Functional\Mysql8RequirePrimaryKeyUpdateTest::testDatabaseLoaded()
- 11.x core/modules/mysql/tests/src/Functional/Mysql8RequirePrimaryKeyUpdateTest.php \Drupal\Tests\mysql\Functional\Mysql8RequirePrimaryKeyUpdateTest::testDatabaseLoaded()
Tests user_update_9301().
File
-
core/
modules/ user/ tests/ src/ Functional/ Mysql8RequirePrimaryKeyUpdateTest.php, line 53
Class
- Mysql8RequirePrimaryKeyUpdateTest
- Tests user_update_9301() on MySQL 8 when sql_require_primary_key is on.
Namespace
Drupal\Tests\user\FunctionalCode
public function testDatabaseLoaded() {
$key_value_store = \Drupal::keyValue('entity.storage_schema.sql');
$id_schema = $key_value_store->get('user.field_schema_data.uid', []);
$this->assertSame('int', $id_schema['users']['fields']['uid']['type']);
$this->runUpdates();
$key_value_store = \Drupal::keyValue('entity.storage_schema.sql');
$id_schema = $key_value_store->get('user.field_schema_data.uid', []);
$this->assertSame('serial', $id_schema['users']['fields']['uid']['type']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.