class ConnectionUnitTest

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php \Drupal\KernelTests\Core\Database\ConnectionUnitTest

MySQL-specific connection unit tests.

Attributes

#[Group('Database')]

Hierarchy

Expanded class hierarchy of ConnectionUnitTest

File

core/modules/mysqli/tests/src/Kernel/mysqli/ConnectionUnitTest.php, line 13

Namespace

Drupal\Tests\mysqli\Kernel\mysqli
View source
class ConnectionUnitTest extends BaseMySqlTest {
  
  /**
   * Tests pdo options override.
   */
  public function testConnectionOpen() : void {
    $this->markTestSkipped('mysqli is not a pdo driver.');
  }

}

Members

Title Sort descending Modifiers Object type Summary
ConfigTestTrait::configImporter protected function Returns a ConfigImporter object to import test configuration.
ConfigTestTrait::copyConfig protected function Copies configuration objects from source storage to target storage.
ConnectionUnitTest::testConnectionOpen public function Tests pdo options override.
ExpectDeprecationTrait::expectDeprecation public function Adds an expected deprecation.
ExpectDeprecationTrait::setUpErrorHandler public function Sets up the test error handler.
ExpectDeprecationTrait::tearDownErrorHandler public function Tears down the test error handler.
ExtensionListTestTrait::getModulePath protected function Gets the path for the specified module.
ExtensionListTestTrait::getThemePath protected function Gets the path for the specified theme.
RandomGeneratorTrait::getRandomGenerator protected function Gets the random generator for the utility methods.
RandomGeneratorTrait::randomMachineName protected function Generates a unique random string containing letters and numbers.
RandomGeneratorTrait::randomObject public function Generates a random PHP object.
RandomGeneratorTrait::randomString public function Generates a pseudo-random string of ASCII characters of codes 32 to 126.
StorageCopyTrait::replaceStorageContents protected static function Copy the configuration from one storage to another and remove stale items.
TestRequirementsTrait::getDrupalRoot protected static function Returns the Drupal root directory.

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