wordpress-develop/tests/phpunit/tests
Sergey Biryukov fa2c313224 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@51580 602fd350-edb4-49c9-b593-d223f7449a82
2021-08-07 14:18:31 +00:00
..
actions Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
admin Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
ajax Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
attachment Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
blocks Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
bookmark Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
canonical Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
category Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
comment Tests: Fix tests failing due to assertContains() using strict checking. 2021-08-07 10:51:59 +00:00
customize Tests: Remove use of assertArraySubset() in Test_WP_Widget_Media::test_constructor(). 2021-08-07 10:40:44 +00:00
date Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
db Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
dependencies Tests: Replace expectException() for PHP native errors with calls to the dedicated PHPUnit 8.4+ methods. 2021-08-07 11:52:05 +00:00
editor Tests: Simplify @covers tags in editor/wpEditors.php using @coversDefaultClass annotation. 2021-02-13 13:45:23 +00:00
error-protection Tests: Correct some newly introduced @covers tags. 2021-03-16 18:44:40 +00:00
external-http Tests: Add missing @covers tags for files in phpunit/tests/external-http/. 2021-02-11 20:53:51 +00:00
feed Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
filesystem Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
formatting Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
functions Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
general Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
hooks Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
http Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
image Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
import Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
includes Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
l10n Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
link Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
load Multisite: Log error/warnings/notices from ms-files.php. 2021-07-06 20:20:51 +00:00
media Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
menu Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
meta Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
multisite Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
oembed Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
option Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
pomo Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
post Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
privacy Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
query Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
rest-api Tests: Remove redundant @requires tags. 2021-08-07 11:56:24 +00:00
rewrite Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
sitemaps Tests: Rename classes in phpunit/tests/sitemaps/ per the naming conventions. 2021-07-26 19:09:41 +00:00
taxonomy Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
term Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
theme Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
url Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
user Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
widgets Tests: Remove use of assertArraySubset() in Test_WP_Widget_Media::test_constructor(). 2021-08-07 10:40:44 +00:00
xmlrpc Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
actions.php Tests: Use more appropriate assertions in various tests. 2021-07-11 12:41:48 +00:00
adminbar.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
auth.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
avatar.php Tests: Replace assertRegExp() with assertMatchesRegularExpression(). 2021-08-06 21:52:06 +00:00
basic.php Build/Test Tools: Fix tests after [50185]. 2021-02-05 03:36:26 +00:00
block-template-utils.php Tests: Use assertSame() in some newly introduced tests. 2021-06-07 11:16:29 +00:00
block-template.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
cache.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
canonical.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
category.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
comment-submission.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
comment.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
compat.php Tests: Replace expectException() for PHP native errors with calls to the dedicated PHPUnit 8.4+ methods. 2021-08-06 21:38:45 +00:00
cron.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
db.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
dbdelta.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
dependencies.php Tests: Use more appropriate assertions in various tests. 2021-07-10 11:15:44 +00:00
file.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
filters.php Tests: Use more appropriate assertions in various tests. 2021-07-11 12:41:48 +00:00
functions.php Tests: Replace assertRegExp() with assertMatchesRegularExpression(). 2021-08-06 21:52:06 +00:00
https-detection.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
https-migration.php Tests: Use assertSame() in some newly introduced tests. 2021-02-10 13:24:24 +00:00
kses.php Tests: Use more appropriate assertions in various tests. 2021-07-10 11:15:44 +00:00
l10n.php Tests: Replace assertContains() with assertStringContainsString() when used with strings. 2021-07-19 14:00:11 +00:00
link.php Canonical: Prevent ID enumeration of private post slugs. 2021-02-02 00:38:40 +00:00
locale.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
mail.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
media.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
meta.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
multisite.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
pluggable.php Tests: Use more appropriate assertions in various tests. 2021-07-12 10:35:44 +00:00
post.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
query.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
rest-api.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
rewrite.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
robots.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
shortcode.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
site-health.php Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
taxonomy.php Tests: Use more appropriate assertions in various tests. 2021-07-15 14:44:22 +00:00
template.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
term.php Tests: Use more appropriate assertions in various tests. 2021-07-18 14:10:24 +00:00
theme.php Tests: Use more appropriate assertions in get_themes() tests. 2021-08-07 14:18:31 +00:00
upload.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
url.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
user.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
walker.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
widgets.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
wp.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00