function ConnectionTest::testHasJson

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php \Drupal\KernelTests\Core\Database\ConnectionTest::testHasJson()
  2. 10 core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php \Drupal\KernelTests\Core\Database\ConnectionTest::testHasJson()

Tests that the method ::hasJson() returns TRUE.

File

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

Class

ConnectionTest
Tests of the core database system.

Namespace

Drupal\KernelTests\Core\Database

Code

public function testHasJson() : void {
    $this->assertTrue($this->connection
        ->hasJson());
}

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