Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. WebAssert.php

function WebAssert::addressNotEquals

Checks that current session address is not equals to provided one.

Parameters

string $page:

Return value

void

Throws

ExpectationException

File

vendor/behat/mink/src/WebAssert.php, line 71

Class

WebAssert
Mink web assertions tool.

Namespace

Behat\Mink

Code

public function addressNotEquals(string $page) {
    $expected = $this->cleanUrl($page);
    $actual = $this->getCurrentUrlPath();
    $this->assert($actual !== $expected, sprintf('Current page is "%s", but should not be.', $actual));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal