function BrowserTestBaseTest::testGetDefaultDriveInstance

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php \Drupal\FunctionalTests\BrowserTestBaseTest::testGetDefaultDriveInstance()
  2. 8.9.x core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php \Drupal\FunctionalTests\BrowserTestBaseTest::testGetDefaultDriveInstance()
  3. 10 core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php \Drupal\FunctionalTests\BrowserTestBaseTest::testGetDefaultDriveInstance()

File

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

Class

BrowserTestBaseTest
Tests BrowserTestBase functionality.

Namespace

Drupal\FunctionalTests

Code

public function testGetDefaultDriveInstance() : void {
    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);
}

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