function SchemaTest::testPgsqlExtensionExists

Same name and namespace in other branches
  1. 9 core/modules/pgsql/tests/src/Kernel/pgsql/SchemaTest.php \Drupal\Tests\pgsql\Kernel\pgsql\SchemaTest::testPgsqlExtensionExists()
  2. 10 core/modules/pgsql/tests/src/Kernel/pgsql/SchemaTest.php \Drupal\Tests\pgsql\Kernel\pgsql\SchemaTest::testPgsqlExtensionExists()

@covers \Drupal\pgsql\Driver\Database\pgsql\Schema::extensionExists

File

core/modules/pgsql/tests/src/Kernel/pgsql/SchemaTest.php, line 241

Class

SchemaTest
Tests schema API for the PostgreSQL driver.

Namespace

Drupal\Tests\pgsql\Kernel\pgsql

Code

public function testPgsqlExtensionExists() : void {
    // Test the method for a non existing extension.
    $this->assertFalse($this->schema
        ->extensionExists('non_existing_extension'));
    // Test the method for an existing extension.
    $this->assertTrue($this->schema
        ->extensionExists('pg_trgm'));
}

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