You are here

public function BrowserTestBaseTest::testGetDefaultDriveInstance in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php \Drupal\FunctionalTests\BrowserTestBaseTest::testGetDefaultDriveInstance()

File

core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php, line 803

Class

BrowserTestBaseTest
Tests BrowserTestBase functionality.

Namespace

Drupal\FunctionalTests

Code

public function testGetDefaultDriveInstance() {
  putenv('MINK_DRIVER_ARGS=' . json_encode([
    NULL,
    [
      'key1' => [
        'key2' => [
          'key3' => 3,
          'key3.1' => 3.1,
        ],
      ],
    ],
  ]));
  $this
    ->getDefaultDriverInstance();
  $this
    ->assertEquals([
    NULL,
    [
      'key1' => [
        'key2' => [
          'key3' => 3,
          'key3.1' => 3.1,
        ],
      ],
    ],
  ], $this->minkDefaultDriverArgs);
}