You are here

protected function WebTestExtended::gotoURLIfNot in Scheduled Updates 8

Utility Function around drupalGet to avoid call if not needed.

Parameters

$path:

1 call to WebTestExtended::gotoURLIfNot()
ScheduledUpdatesTestBase::cloneFields in tests/src/FunctionalJavascript/ScheduledUpdatesTestBase.php
Clone multiple fields on the Clone Field Page.

File

tests/src/FunctionalJavascript/WebTestExtended.php, line 162
Contains \Drupal\Tests\scheduled_updates\WebTestExtended.

Class

WebTestExtended
BrowserTestBase plus project agnostic helper functions.

Namespace

Drupal\Tests\scheduled_updates\FunctionalJavascript

Code

protected function gotoURLIfNot($path) {
  if ($path != $this
    ->getUrl()) {
    $this
      ->drupalGet($path);
  }
}