wordpress-develop/tests
Sergey Biryukov a9ba7fde79 Tests: Use assertSame() in WP_Query tests involving ::$max_num_pages property.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [48937], [54402], [54768], [57648].

Props costdev.
See #58683, #59655.

git-svn-id: https://develop.svn.wordpress.org/trunk@57653 602fd350-edb4-49c9-b593-d223f7449a82
2024-02-18 18:59:24 +00:00
..
e2e Options, Meta APIs: Prevent saving of invalid timezones. 2023-10-16 23:49:10 +00:00
gutenberg Block Editor: Update the Gutenberg branch used to launch Gutenberg e2e tests. 2021-06-01 09:21:36 +00:00
performance Build/Test Tools: Expand performance test scenarios. 2023-11-08 10:30:21 +00:00
phpunit Tests: Use assertSame() in WP_Query tests involving ::$max_num_pages property. 2024-02-18 18:59:24 +00:00
qunit REST API: Revert the refactor of global styles endpoints in REST API in [57624]. 2024-02-13 15:10:37 +00:00
visual-regression Build/Test Tools: Migrate Puppeteer tests to Playwright. 2023-10-13 08:11:41 +00:00