Skip to content

Commit 689449e

Browse files
cs278TavoNiievez
authored andcommitted
Ensure fragments are ignored when parsing URLs for routes (#26)
1 parent 1dc65f4 commit 689449e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Functional/IssuesCest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,14 @@ public function keepDoctrineDbalConnection(FunctionalTester $I)
3232
$user = $dbalConnection->fetchOne('SELECT id FROM user WHERE email = :email', ['email' => 'fixture@fixture.test']);
3333
$I->assertNotFalse($user);
3434
}
35+
36+
/**
37+
* @see https://github.com/Codeception/module-symfony/pull/185
38+
*/
39+
public function ensureFragmentsAreIgnored(FunctionalTester $I)
40+
{
41+
$I->amOnPage('/register#content');
42+
$I->seeInCurrentRoute('app_register');
43+
$I->seeCurrentRouteIs('app_register');
44+
}
3545
}

0 commit comments

Comments
 (0)