Skip to content

Commit

Permalink
Ensure fragments are ignored when parsing URLs for routes (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs278 committed Mar 15, 2024
1 parent 6e1ee54 commit 3419af9
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
Expand Up @@ -32,4 +32,14 @@ public function keepDoctrineDbalConnection(FunctionalTester $I)
$user = $dbalConnection->fetchOne('SELECT id FROM user WHERE email = :email', ['email' => 'fixture@fixture.test']);
$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
@@ -1,4 +1,4 @@
<?php //[STAMP] efac700459e2b7caae8b963946103bb9
<?php //[STAMP] 2e00904c0bf7be59daddd1dfc51d2b6d
// phpcs:ignoreFile
namespace App\Tests\Support\_generated;

Expand Down

0 comments on commit 3419af9

Please sign in to comment.