Closed (fixed)
Project:
Lupus Decoupled Drupal
Version:
1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2023 at 09:08 UTC
Updated:
23 Jan 2024 at 11:49 UTC
Jump to comment: Most recent
Comments
Comment #3
utor.io commentedAdded a simple unit test to check if base paths are considered.
Comment #4
roderikLooks good to me, just a suggestion for
I don't know how that works in your list's organization -- lots of dimensions unfortunately :)
Comment #5
utor.io commentedThank you!
['/ce-api?param=1', '', TRUE]actually failed. Fixed it and added a couple of test cases.Comment #6
roderikLooks good.
Comment #7
fagoit's really great to have a test added here! I do think it's not correctly checking things though, plese take look.
Comment #8
utor.io commentedCommented and added tests for altered paths.
Comment #9
fagoI see, makes sense.
TEst coverage improvement is great, however not fully there:
e.g. from test-data
'Frontpage param CE-API trailing slash' => ['/ce-api/?param=1', '', TRUE, '/'],
We should see this resulting into /?param=1 - thus we want to test not only the resulting path but the resulting request-URI really. Could you adust the test-case like this? Then I think this is ready to go.
Comment #10
roderik1 commit added (and force-pushed with PHPCS fix): added "?param=1" to all expected/tested values, where the input values had them. Nothing else.
I hope this is good to merge now, per the previous comment. It simplifies other issues that need to add phpunit tests.
Comment #12
fagook, thanks. that works well, merged then.