- Status changed to RTBC
over 2 years ago 3:34pm 8 February 2023 - πΊπΈUnited States smustgrave
This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β as a guide.
Tests passed for D10.
test-only shows a failing test case
Issue summary has the issue and proposed resolution.Thanks!
- Status changed to Needs work
over 2 years ago 3:54pm 13 February 2023 - π¬π§United Kingdom catch
+++ b/core/modules/path_alias/tests/src/Unit/AliasManagerTest.php @@ -525,6 +525,16 @@ public function testGetAliasByPathUncachedMissWithAlias() { + */ + public function testInvalidArgumentException() { + $this->expectException(\InvalidArgumentException::class); + $this->aliasManager->getAliasByPath(''); + } +If we're already adding this test, let's also test for the case with no forward slash too.
- π©πͺGermany IT-Cru Munich
Should this maybe connected with π setting path alias to `/` causes PHP8.1/str_starts_with/null error Needs work ?
- Merge request !13241[#3279482] fix: AliasManager->getAliasByPath() throw warning when handling empty path string. β (Open) created by Unnamed author