From 1155c49e1fdfab7daf9cf571ea1f00affaf33f94 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 12 Mar 2024 12:18:27 +0000 Subject: [PATCH] Ensure fragments are ignored when parsing URLs for routes --- tests/Functional/IssuesCest.php | 10 ++++++++++ tests/Support/_generated/FunctionalTesterActions.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/Functional/IssuesCest.php b/tests/Functional/IssuesCest.php index c0fa13f..0034006 100644 --- a/tests/Functional/IssuesCest.php +++ b/tests/Functional/IssuesCest.php @@ -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'); + } } diff --git a/tests/Support/_generated/FunctionalTesterActions.php b/tests/Support/_generated/FunctionalTesterActions.php index 76e94a7..67b3bf5 100644 --- a/tests/Support/_generated/FunctionalTesterActions.php +++ b/tests/Support/_generated/FunctionalTesterActions.php @@ -1,4 +1,4 @@ - pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy