wordpress-develop/tests/phpunit/tests
Aaron Jorbin 230313d25a Check if WP_DEFAULT_THEME starts with twenty before asserting it is in default theme array
This fixes an issue that if you change WP_DEFAULT_THEME and run core unit tests, the tests fail since your theme isn't one of the hard coded lists of default themes. We need to keep this test to make sure that we update the array of default themes for use in other tests.

If we ever change the naming convention for default themes, this will need to be updated.

props nacin for initial idea
fixes #29925



git-svn-id: https://develop.svn.wordpress.org/trunk@29946 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-17 20:59:23 +00:00
..
actions Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
admin Update unit tests to reflect: 2014-06-09 15:58:16 +00:00
ajax Wouldn't it be incredible if you could run Unit Tests without all of your uploads being indiscriminately blown away and your upload folder permissions being destroyed? 2014-07-12 07:08:15 +00:00
attachment Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
canonical Setup rewrite changes in tests in a predictable fashion. Don't mix method calls with wrapper function calls. 2014-07-03 01:42:57 +00:00
comment Comment/post author in/not_in for WP_Comment_Query. 2014-10-17 01:57:18 +00:00
date Use table aliases for columns in SQL generated by WP_Date_Query. 2014-10-17 01:19:03 +00:00
dependencies wp_script_is( ..., 'enqueued' ) needs to check dependencies recursively - a single item's dependencies may only be a subset of the full dependency tree. Adds a new method on WP_Dependencies called ->recurse_deps(). 2014-07-20 00:28:57 +00:00
export When setting WP_TESTS_FORCE_KNOWN_BUGS to true, it is preferable that some forced tests are still skipped when they call classes or functions that do not exist, producing fatal errors. 2013-11-25 22:49:51 +00:00
feed Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
filesystem Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
formatting Use HTTPS URLs for core.trac.wordpress.org 2014-09-29 13:27:55 +00:00
functions Remove unit test for is_https_url(), see [29309]. 2014-07-27 17:18:19 +00:00
general Fix Tests_Paginate_Links tests by properly setting up / tearing down permalink structure. 2014-10-16 04:22:16 +00:00
http Add some unit tests for WP_HTTP::parse_url() to cover the <PHP 5.4.7 compatibility alterations. 2014-10-09 03:00:16 +00:00
image Fix setting default quality in WP_Image_Editor. 2014-10-04 13:11:38 +00:00
import Use HTTPS URLs for core.trac.wordpress.org 2014-09-29 13:27:55 +00:00
includes Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
meta Overhaul SQL generating logic in WP_Meta_Query to avoid unnecessary table joins. 2014-10-17 20:20:04 +00:00
multisite Split and organize multisite unit tests 2014-10-16 05:06:22 +00:00
option Split and organize multisite unit tests 2014-10-16 05:06:22 +00:00
pomo Fix strict notices in Tests_POMO_PO. 2013-12-01 12:47:35 +00:00
post Overhaul SQL generating logic in WP_Meta_Query to avoid unnecessary table joins. 2014-10-17 20:20:04 +00:00
query Better "inclusive" support for string values in WP_Date_Query. 2014-10-17 02:27:44 +00:00
term Remove invalid continue calls from WP_Tax_Query::get_sql_for_clause(). 2014-10-16 22:06:46 +00:00
theme Fix theme support unit test added in [27220]. 2014-10-14 19:54:03 +00:00
user Improve and reduce tests for get_blogs_of_user() 2014-10-17 03:01:21 +00:00
xmlrpc Use HTTPS URLs for core.trac.wordpress.org 2014-09-29 13:27:55 +00:00
actions.php Introduce doing_filter() and doing_action() to identify hooks in progress. 2014-02-26 18:43:59 +00:00
adminbar.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
auth.php Require a non-empty $nonce value in wp_verify_nonce(). 2014-08-26 07:38:51 +00:00
basic.php Adds a unit test to demonstrate that the order of case and default in a switch statement does not matter. 2014-05-30 17:31:51 +00:00
cache.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
canonical.php Add expectedIncorrectUsage flags for unit tests that generate invalid dates. 2014-10-17 00:40:06 +00:00
category.php Update unit tests to reflect: 2014-06-09 15:58:16 +00:00
comment.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
compat.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
cron.php wp_schedule_single_event() should not prevent scheduling a future duplicate event. It should only reject an event as a duplicate if there is already a similar event scheduled within 10 minutes of the given timestamp. 2014-10-17 19:16:26 +00:00
db.php Properly suppress errors in test_empty_where_on_update(), which expects an empty WHERE clause. 2014-09-04 04:30:11 +00:00
dependencies.php Remove tests for code still in development, see #22229. If accidentally run, they produce fatal errors. 2013-10-07 14:17:13 +00:00
file.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
filters.php Unit tests for has_filter() not resetting the array pointer. 2014-09-02 06:49:11 +00:00
functions.php wp_extract_urls() needs to also grab URLs with query strings and hashes. 2014-09-23 02:49:22 +00:00
iterators.php When setting WP_TESTS_FORCE_KNOWN_BUGS to true, it is preferable that some forced tests are still skipped when they call classes or functions that do not exist, producing fatal errors. 2013-11-25 22:49:51 +00:00
kses.php Make wp_kses_no_null() remove any invalid control characters in a string. 2014-07-01 18:00:50 +00:00
l10n.php Revert [25405] and use a file that does exist. see #25282. 2013-09-12 17:47:40 +00:00
link.php In get_adjacent_post(), make $excluded_terms work as expected. 2014-07-19 22:26:43 +00:00
mail.php Avoid a notice and clean up setting/unsetting of globals by moving them into setUp() and tearDown() methods in Tests_Mail. 2013-09-12 04:46:49 +00:00
media.php Ensure themes don't have to call add_image_size() to be used in unit tests. 2014-10-11 04:22:11 +00:00
meta.php Use the primary meta_query clause when parsing orderby in WP_Query. 2014-10-08 15:11:14 +00:00
multisite.php Split and organize multisite unit tests 2014-10-16 05:06:22 +00:00
post.php Use HTTPS URLs for trac.wordpress.org (and use core.trac.wordpress.org) 2014-09-29 13:36:38 +00:00
query.php Make sure permalink structure is consistent when running query tests. 2014-07-03 01:50:02 +00:00
rewrite.php Setup rewrite changes in tests in a predictable fashion. Don't mix method calls with wrapper function calls. 2014-07-03 01:42:57 +00:00
shortcode.php Make has_shortcode() recursive/work for nested shortcodes. 2014-07-16 22:04:08 +00:00
taxonomy.php Improve unit test coverage for wp_insert_term(). 2014-10-03 13:30:22 +00:00
term.php Invalidate cache for child terms when parent term is deleted. 2014-10-17 20:58:48 +00:00
theme.php Check if WP_DEFAULT_THEME starts with twenty before asserting it is in default theme array 2014-10-17 20:59:23 +00:00
upload.php Wouldn't it be incredible if you could run Unit Tests without all of your uploads being indiscriminately blown away and your upload folder permissions being destroyed? 2014-07-12 07:08:15 +00:00
url.php Forcing SSL logins now forces SSL for the entire admin, with no middle ground. 2014-05-29 03:58:41 +00:00
user.php Improve and reduce tests for get_blogs_of_user() 2014-10-17 03:01:21 +00:00
walker.php Add unit tests for Walker class. 2014-08-01 20:35:25 +00:00
widgets.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00