function Mysql8RequirePrimaryKeyUpdateTest::testDatabaseLoaded

Same name in other branches
  1. 9 core/modules/user/tests/src/Functional/Mysql8RequirePrimaryKeyUpdateTest.php \Drupal\Tests\user\Functional\Mysql8RequirePrimaryKeyUpdateTest::testDatabaseLoaded()
  2. 10 core/modules/mysql/tests/src/Functional/Mysql8RequirePrimaryKeyUpdateTest.php \Drupal\Tests\mysql\Functional\Mysql8RequirePrimaryKeyUpdateTest::testDatabaseLoaded()

Tests updates.

Overrides UpdatePathTestBase::testDatabaseLoaded

File

core/modules/mysql/tests/src/Functional/Mysql8RequirePrimaryKeyUpdateTest.php, line 58

Class

Mysql8RequirePrimaryKeyUpdateTest
Tests updates MySQL 8 when sql_require_primary_key is on.

Namespace

Drupal\Tests\mysql\Functional

Code

public function testDatabaseLoaded() {
    $this->runUpdates();
    // Ensure that after updating a user can be created and do a basic test that
    // the site is available by logging in.
    $this->drupalLogin($this->createUser(admin: TRUE));
    $this->assertSession()
        ->statusCodeEquals(200);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.