[wp-trac] [WordPress Trac] #56793: Test tool and unit test improvements for 6.2
WordPress Trac
noreply at wordpress.org
Thu Nov 10 13:06:14 UTC 2022
#56793: Test tool and unit test improvements for 6.2
------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.2
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"54791" 54791]:
{{{
#!CommitTicketReference repository="" revision="54791"
Tests: Correct the test for `get_blogaddress_by_id()` with a non-existing
ID.
Due to auto-increment, when running various test groups or classes
separately, in this case running all of the tests under
`phpunit/tests/multisite/` by including the `--filter Tests_Multisite`
parameter, it is entirely possible for the blog ID 42 to actually exist,
making the test's assumption incorrect.
By using `PHP_INT_MAX` instead, we can avoid a collision with a fixture of
another test.
Follow-up to [31157].
See #56793.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56793#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list