function ConnectionTest::testMakeSequenceNameDeprecation

Same name in this branch
  1. 10 core/modules/sqlite/tests/src/Kernel/sqlite/ConnectionTest.php \Drupal\Tests\sqlite\Kernel\sqlite\ConnectionTest::testMakeSequenceNameDeprecation()

Tests deprecation of ::makeSequenceName().

@group legacy

File

core/modules/mysql/tests/src/Kernel/mysql/ConnectionTest.php, line 31

Class

ConnectionTest
MySQL-specific connection tests.

Namespace

Drupal\Tests\mysql\Kernel\mysql

Code

public function testMakeSequenceNameDeprecation() : void {
    $this->expectDeprecation("Drupal\\Core\\Database\\Connection::makeSequenceName() is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3377046");
    $this->assertIsString($this->connection
        ->makeSequenceName('foo', 'bar'));
}

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