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
ファイル: UpdatePageCept.php プロジェクト: Ayoubblog/TypiCMS
<?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');