seeCurrentUrlEquals() public method

Checks that the current URL is equal to the given string. Unlike seeInCurrentUrl, this only matches the full URL. php seeCurrentUrlEquals('/'); ?>
See also: Codeception\Lib\InnerBrowser::seeCurrentUrlEquals()
public seeCurrentUrlEquals ( $uri )
$uri
示例#1
0
<?php

$I = new WebGuy($scenario);
$I->wantTo('update a page');
$I->amOnPage('users/login');
$I->fillField('email', '*****@*****.**');
$I->fillField('password', 'admin');
$I->click('button[type=submit]');
$I->amOnPage('/admin/pages/1/edit');
$I->fillField('fr[title]', 'title test');
$I->click('Save and exit');
$I->seeCurrentUrlEquals('/admin/pages');