- Issue created by @Anybody
- Status changed to Needs review
over 1 year ago 2:00pm 9 May 2023 - 🇩🇪Germany Anybody Porta Westfalica
Explanation:
.+
is too greedy, you have to use the un-greedy version.+?
here. See https://stackoverflow.com/a/7124976 for details. - last update
over 1 year ago 10 pass, 1 fail - @anybody opened merge request.
- 🇩🇪Germany Anybody Porta Westfalica
Let's see what the tests say. This might need us to align the text to the actual output, which was removed unintentionally before.
- last update
over 1 year ago run-tests.sh fatal error - last update
over 1 year ago 11 pass - last update
over 1 year ago 10 pass, 1 fail - 🇩🇪Germany Anybody Porta Westfalica
The failing test did not change and can't be affected by this change, so this must be unrelated. @Chi could you please run a re-test on 3.x at https://www.drupal.org/node/2643614/qa → ?
Any explanations?
This fix is needed to see true render results for the tests in 🐛 drupal_image() needs #width / #height values for fully working image cache scale, lazy-loading and img attributes RTBC . In the current implementation it didn't appear, because the attributes added by "image_style" (lazy / width / height) were never applied without a real image (and original sizes set for some image styles).
- 🇩🇪Germany Anybody Porta Westfalica
FYI: Tests are passing locally without any issues:
phpunit tests/ PHPUnit 9.6.7 by Sebastian Bergmann and contributors. Testing /var/www/html/web/modules/contrib/twig_tweak/tests ........... 11 / 11 (100%) Time: 00:16.923, Memory: 6.00 MB OK (11 tests, 250 assertions)
- 🇩🇪Germany Anybody Porta Westfalica
Created a separate issue for the unrelated failing test: 🐛 Fix failing test since Drupal 10.1.x Closed: outdated
- Status changed to RTBC
over 1 year ago 10:56am 10 May 2023 - 🇩🇪Germany Grevil
Makes sense!
RTBC!
Confirming, that the failing test is unrelated.
- First commit to issue fork.
- last update
over 1 year ago 11 pass - Status changed to Fixed
over 1 year ago 12:28pm 19 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.