The current tests show the following output with PHP 8.2:
Views Plugins.Views Plugins
1 1 Views Plugins.viewsPluginStyleJumpMenuTest
✓ - setUp
✗
testDuplicatePaths
fail: [Other] Line 70 of sites/all/modules/views/tests/styles/views_plugin_style_jump_menu.test:
Title
z7VWX4cu should appear on the jump list, as we do not filter
fail: [Other] Line 70 of sites/all/modules/views/tests/styles/views_plugin_style_jump_menu.test:
Title
clMqiqxh should appear on the jump list, as we do not filter
fail: [Other] Line 70 of sites/all/modules/views/tests/styles/views_plugin_style_jump_menu.test:
Title
tIgSxthI should appear on the jump list, as we do not filter
fail: [Other] Line 70 of sites/all/modules/views/tests/styles/views_plugin_style_jump_menu.test:
Title
tkEBpGUh should appear on the jump list, as we do not filter
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | views-jump_menu_php82-3332486-5.patch | 929 bytes | tibezh |
Issue fork views-3332486
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
joseph.olstad@DamienMcKenna, please add PHP 8.1 to the automated tests.
and maybe set PHP 8.0 or 8.1 as the default as 7.4 is EOL since december 2022.
Comment #3
damienmckennaI switched the default test run to PHP 8.0. Once we fix the PHP 8.2 tests I'll update the tests to use it. IMHO adding 8.1 would be a wasted effort.
Comment #4
damienmckennaThis should be fixed in #3336764: PHP 8.x deprecated function warning at runtime
Comment #5
tibezh commentedI can see that the issue is still present, seems the patch should be fix the issue.
Comment #6
tibezh commentedIt looks good now, needs review.
Comment #8
klausiOK, interesting that the sorting direction fixes the tests? But if we are green now on all PHP versions this is fine!
Comment #9
damienmckennaThanks for fixing the test coverage. Let's add this to the next release.
Comment #10
joseph.olstad@tibezh, thanks for this fix, which , for whatever reason I've never understood why and how this is a fix but I've seen PHP 8.2 issues related to this before. Your very small change does fix the test and amazingly doesn't cause a test failure in the other versions of PHP (confusing me even more).
Comment #11
joseph.olstad@DamienMcKenna, you'll also want to commit this fix, also by @tibezh
#3409931: Views plugin query: TypeError: explode(): Argument #2 ($string) must be of type string
Comment #13
damienmckennaCommitted. Thanks everyone.