ConnectionTest.php

Same filename in this branch
  1. 10 core/modules/sqlite/tests/src/Unit/ConnectionTest.php
  2. 10 core/modules/mysql/tests/src/Unit/ConnectionTest.php
  3. 10 core/modules/mysql/tests/src/Kernel/mysql/ConnectionTest.php
  4. 10 core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
  5. 10 core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
Same filename in other branches
  1. 9 core/modules/sqlite/tests/src/Unit/ConnectionTest.php
  2. 9 core/modules/mysql/tests/src/Unit/ConnectionTest.php
  3. 9 core/modules/mysql/tests/src/Kernel/mysql/ConnectionTest.php
  4. 9 core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
  5. 9 core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
  6. 8.9.x core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
  7. 8.9.x core/tests/Drupal/Tests/Core/Database/Driver/sqlite/ConnectionTest.php
  8. 8.9.x core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
  9. 11.x core/modules/sqlite/tests/src/Unit/ConnectionTest.php
  10. 11.x core/modules/mysql/tests/src/Unit/ConnectionTest.php
  11. 11.x core/modules/mysql/tests/src/Kernel/mysql/ConnectionTest.php
  12. 11.x core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
  13. 11.x core/tests/Drupal/Tests/Core/Database/ConnectionTest.php

Namespace

Drupal\Tests\sqlite\Kernel\sqlite

File

core/modules/sqlite/tests/src/Kernel/sqlite/ConnectionTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\sqlite\Kernel\sqlite;

use Drupal\KernelTests\Core\Database\DriverSpecificDatabaseTestBase;

/**
 * SQLite-specific connection tests.
 *
 * @group Database
 */
class ConnectionTest extends DriverSpecificDatabaseTestBase {
    
    /**
     * Tests deprecation of ::makeSequenceName().
     *
     * @group legacy
     */
    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'));
    }

}

Classes

Title Deprecated Summary
ConnectionTest SQLite-specific connection tests.

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