[wp-trac] [WordPress Trac] #53363: Test tool and unit test improvements for 5.9
WordPress Trac
noreply at wordpress.org
Sat Aug 7 14:18:47 UTC 2021
#53363: Test tool and unit test improvements for 5.9
--------------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"51580" 51580]:
{{{
#!CommitTicketReference repository="" revision="51580"
Tests: Use more appropriate assertions in `get_themes()` tests.
This replaces instances of `assertTrue( is_dir( ... ) )` with
`assertDirectoryExists()` to use native PHPUnit functionality.
The `assertDirectoryExists()` method was introduced in PHPUnit 5.6. As the
minimum supported PHPUnit version has been raised to PHPUnit 5.7.21, it
can now be used.
Follow-up to [51543], [51574], [51579].
Props jrf.
See #53363.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53363#comment:52>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list