You are here

protected function WebformAssertLegacyTrait::assertUrl in Webform 8.5

Same name and namespace in other branches
  1. 6.x tests/src/Traits/WebformAssertLegacyTrait.php \Drupal\Tests\webform\Traits\WebformAssertLegacyTrait::assertUrl()

Passes if the internal browser's URL matches the given path.

Parameters

\Drupal\Core\Url|string $path: The expected system path or URL.

9 calls to WebformAssertLegacyTrait::assertUrl()
WebformBlockTest::testBlock in tests/src/Functional/Block/WebformBlockTest.php
Tests webform block.
WebformElementManagedFilePrivateTest::testPrivateFiles in tests/src/Functional/Element/WebformElementManagedFilePrivateTest.php
Test private files.
WebformElementTest::testWebform in tests/src/Functional/Element/WebformElementTest.php
Tests webform element.
WebformHandlerRemotePostTest::testRemotePostHandler in tests/src/Functional/Handler/WebformHandlerRemotePostTest.php
Test remote post handler.
WebformSettingsAccessDeniedTest::testWebformAccessDenied in tests/src/Functional/Settings/WebformSettingsAccessDeniedTest.php
Tests webform access denied setting.

... See full list

File

tests/src/Traits/WebformAssertLegacyTrait.php, line 410

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

protected function assertUrl($path) {
  $this
    ->assertSession()
    ->addressEquals($path);
}