You are here

public function MongoDbTestBase::getTestDatabaseName in MongoDB 8.2

Obtain the name of a per-test database.

Parameters

string $postfix: The way for the caller to differentiate this database from others.

Return value

string The name of the per-test database, like 'simpletest1234_foo'.

File

modules/mongodb/tests/src/Kernel/MongoDbTestBase.php, line 64

Class

MongoDbTestBase
Class MongoDbTestBase provides basic setUp()/tearDown() for MongoDB.

Namespace

Drupal\Tests\mongodb\Kernel

Code

public function getTestDatabaseName($postfix) {
  return $this
    ->getDatabasePrefix() . '_' . $postfix;
}