Verified Commit 15191aaa authored by Dave Long's avatar Dave Long
Browse files

fix: #3553671 BrowserTestBase::initMink crashes if not using DrupalTestBrowser

By: mglaman
(cherry picked from commit 2cf25946)
parent 0f18475e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ public static function setDebugDumpHandler(): void {
  protected function initMink() {
    $driver = $this->getDefaultDriverInstance();

    if ($driver instanceof BrowserKitDriver) {
    if ($driver instanceof BrowserKitDriver && $driver->getClient() instanceof DrupalTestBrowser) {
      // Turn off curl timeout. Having a timeout is not a problem in a normal
      // test running, but it is a problem when debugging. Also, disable SSL
      // peer verification so that testing under HTTPS always works.