summaryrefslogtreecommitdiffstatshomepage
path: root/core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php')
-rw-r--r--core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php b/core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
index 2372faceb772..8938fa632141 100644
--- a/core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
+++ b/core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
@@ -2,7 +2,6 @@
namespace Drupal\FunctionalJavascriptTests;
-use Behat\Mink\Driver\GoutteDriver;
use PHPUnit\Framework\AssertionFailedError;
/**
@@ -41,6 +40,10 @@ class BrowserWithJavascriptTest extends WebDriverTestBase {
}());
JS;
$this->assertJsCondition($javascript);
+
+ // Ensure that \Drupal\Tests\UiHelperTrait::isTestUsingGuzzleClient() works
+ // as expected.
+ $this->assertFalse($this->isTestUsingGuzzleClient());
}
public function testAssertJsCondition() {
@@ -151,9 +154,9 @@ JS;
$this->metaRefreshCount = 0;
}
- // Log only for WebDriverTestBase tests because for Goutte we log with
- // ::getResponseLogHandler.
- if ($this->htmlOutputEnabled && !($this->getSession()->getDriver() instanceof GoutteDriver)) {
+ // Log only for WebDriverTestBase tests because for DrupalTestBrowser we log
+ // with ::getResponseLogHandler.
+ if ($this->htmlOutputEnabled && !$this->isTestUsingGuzzleClient()) {
$html_output = 'GET request to: ' . $url .
'<hr />Ending URL: ' . $this->getSession()->getCurrentUrl();
$html_output .= '<hr />' . $out;