Skip to content

Commit

Permalink
Ensure fragments are ignored when parsing URLs for routes
Browse files Browse the repository at this point in the history
  • Loading branch information
cs278 committed Mar 12, 2024
1 parent 6e1ee54 commit 1155c49
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions tests/Functional/IssuesCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,14 @@ public function keepDoctrineDbalConnection(FunctionalTester $I)
$user = $dbalConnection->fetchOne('SELECT id FROM user WHERE email = :email', ['email' => '[email protected]']);
$I->assertNotFalse($user);
}

/**
* @see https://github.com/Codeception/module-symfony/pull/185
*/
public function ensureFragmentsAreIgnored(FunctionalTester $I)
{
$I->amOnPage('/register#content');
$I->seeInCurrentRoute('app_register');
$I->seeCurrentRouteIs('app_register');
}
}
2 changes: 1 addition & 1 deletion tests/Support/_generated/FunctionalTesterActions.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php //[STAMP] efac700459e2b7caae8b963946103bb9
<?php //[STAMP] 2e00904c0bf7be59daddd1dfc51d2b6d
// phpcs:ignoreFile
namespace App\Tests\Support\_generated;

Expand Down

0 comments on commit 1155c49

Please sign in to comment.