Skip to content

Commit 3419af9

Browse files
authored
Ensure fragments are ignored when parsing URLs for routes (#26)
1 parent 6e1ee54 commit 3419af9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
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
}

tests/Support/_generated/FunctionalTesterActions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php //[STAMP] efac700459e2b7caae8b963946103bb9
1+
<?php //[STAMP] 2e00904c0bf7be59daddd1dfc51d2b6d
22
// phpcs:ignoreFile
33
namespace App\Tests\Support\_generated;
44

0 commit comments

Comments
 (0)