Fix tests to account for current core behavior#169
Fix tests to account for current core behavior#169wojtekn wants to merge 1 commit intowp-cli:mainfrom
Conversation
|
Interestingly, this passes for me locally... |
|
@danielbachhuber could you please check tests for the It seems it's something environment-related, but I couldn't find the root cause yet. |
@wojtekn Yep, |
|
@wojtekn I'm still flummoxed as to why @schlessera @swissspidy Any ideas on what might be going on? I added a couple of debug scenarios with #173 to see if we can get more visibility. |
|
@wojtekn Found it! 😁 https://core.trac.wordpress.org/ticket/57370 |
In this PR, I propose to fix the failing tests. It looks like the change was introduced in 3b25705 .
I think that at that time, there was a bug in the WP core that resulted in saving 150x150 thumbnails for 150x150 images. We modified tests in the commit shown above to ensure they check the current core behavior, even if it was considered buggy.
However, I'm unsure about the exact timing of those events, as tests for the older WP version were marked as skipped in Aug 2019 (#112), tests were modified for the newer WP version in 2021 (3b25705), but the bug in the core was fixed in Sep 2019 (https://core.trac.wordpress.org/ticket/32437)?