function ConnectionTest::testDeprecatedGetUnprefixedTablesMap

Tests deprecation of ::getUnprefixedTablesMap().

@group legacy

File

core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php, line 182

Class

ConnectionTest
Tests of the core database system.

Namespace

Drupal\KernelTests\Core\Database

Code

public function testDeprecatedGetUnprefixedTablesMap() : void {
    $this->expectDeprecation('Drupal\\Core\\Database\\Connection::getUnprefixedTablesMap() is deprecated in drupal:10.0.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3257198');
    $this->assertIsArray($this->connection
        ->getUnprefixedTablesMap());
}

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