Wordpress/tests/phpunit/tests
Scott Taylor ac63fb4dc3 YouTube oEmbed parsing: support the `m` subdomain.
Adds unit tests.

Props Toru, johnbillion.
Fixes #32714.


git-svn-id: https://develop.svn.wordpress.org/trunk@32930 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-24 21:05:59 +00:00
..
actions
admin Disallow post slugs that will result in permalinks that conflict with date archive URLs. 2015-05-29 12:52:17 +00:00
ajax Pinking shears in unit test files. 2015-03-05 13:14:28 +00:00
attachment Fix typo in a comment in slashing tests. 2015-01-07 07:08:47 +00:00
canonical In PHPUnit test classes, `parent::tearDown()` should be the last thing done in `tearDown()` methods. 2015-03-05 13:14:15 +00:00
category In `wp_list_categories()`, 'All' link should point to post type archive if taxonomy is not registered for 'post' or 'page'. 2015-04-24 14:56:37 +00:00
comment In `WP_Comment_Query`, parse meta_query vars after the `pre_get_comments` hook. 2015-06-23 14:35:29 +00:00
customize Use `assertFalse()` rather than `assertNull()` in `Tests_WP_Customize_Setting::test_is_current_blog_previewed()`. 2015-06-18 14:07:35 +00:00
date `WP_Date_Query` date validation should not fail for hour = 0. 2015-01-20 19:12:48 +00:00
db Correct a unit test name. 2015-06-17 23:09:28 +00:00
dependencies Add a return value to `wp_register_script()` and `wp_register_style()` which matches the return value of `WP_Dependencies::add()`. 2015-05-10 19:56:15 +00:00
feed Use shared fixtures in RSS2 unit tests. 2015-03-20 12:34:28 +00:00
filesystem
formatting Add `expectedDeprecated` flags to `wp_richedit_pre()` and `wp_htmledit_pre()` unit tests. 2015-06-23 14:41:39 +00:00
functions
general In `paginate_links()`, improve handling of custom pagination query vars. 2015-05-05 21:58:23 +00:00
http WP_HTTP: ensure that the temporary file is created within the temporary directly when `stream` is specified without a `filename` parameter. 2015-06-09 03:54:49 +00:00
image In PHPUnit test classes, `parent::tearDown()` should be the last thing done in `tearDown()` methods. 2015-03-05 13:14:15 +00:00
import
includes Term unit test factory class should override `create_and_get()` method. 2015-05-30 13:03:07 +00:00
link In `get_next_comments_link()`, ensure proper pagination when no 'cpage' query var is found. 2015-03-05 03:56:21 +00:00
meta Avoid returning duplicate matches when using a meta query in `WP_User_Query`. 2015-06-09 17:41:35 +00:00
multisite Introduce get_main_network_id() 2015-06-14 21:44:45 +00:00
option Use a dataProvider for network option sanitization tests. 2015-05-28 06:37:44 +00:00
pomo
post Implement tests for the `upload_mimes` filter to ensure it prevents the upload of disallowed file types. 2015-06-24 00:42:33 +00:00
query Allow `is_page_template()` to accept an array, as many other conditional tags do. 2015-03-12 16:27:06 +00:00
rewrite When parsing what appears to be a date archive request, check for a post with a clashing permalink before resolving to the archive. 2015-05-29 13:09:26 +00:00
term Introduced `$field` argument to `get_term_link()`. 2015-05-23 18:28:22 +00:00
theme
user Comprehensive unit tests for every available capability, and for all roles. 2015-06-17 00:04:08 +00:00
xmlrpc Correctly set the post author in `wp_xmlrpc_server::mw_editPost()` when the current user is not the author of the post. 2015-04-02 15:48:41 +00:00
actions.php
adminbar.php
auth.php Set `$_SERVER['REQUEST_METHOD']` for unit tests. 2015-06-16 00:03:25 +00:00
avatar.php Fix a unit test after [31721]. 2015-03-11 20:11:38 +00:00
basic.php In PHPUnit test classes, `parent::tearDown()` should be the last thing done in `tearDown()` methods. 2015-03-05 13:14:15 +00:00
cache.php In PHPUnit test classes, `parent::tearDown()` should be the last thing done in `tearDown()` methods. 2015-03-05 13:14:15 +00:00
canonical.php Implement canonical and `url_to_postid()` tests for child pages which share a post name with other child pages. 2015-06-24 00:40:45 +00:00
category.php In category dropdown, 'selected' should match against 'value_field'. 2015-05-11 13:10:19 +00:00
comment.php In `wp_notify_moderator()`, don't throw notice when comment belongs to a post with no author. 2015-06-04 17:28:07 +00:00
compat.php WPDB: When checking that a string can be sent to MySQL, we shouldn't use `mb_convert_encoding()`, as it behaves differently to MySQL's character encoding conversion. 2015-05-06 02:59:50 +00:00
cron.php In PHPUnit test classes, `parent::tearDown()` should be the last thing done in `tearDown()` methods. 2015-03-05 13:14:15 +00:00
db.php WPDB: Allow queries to reference tables in the `dbname.tablename` format, and allow table names to contain any valid character, rather than just ASCII. 2015-05-06 05:00:39 +00:00
dbdelta.php Improve dbDelta unit tests 2015-06-14 19:22:20 +00:00
dependencies.php
file.php Tests: Clean up the resulting /tmp/foo* files from the `tempnam` call. 2015-03-31 02:10:52 +00:00
filters.php In `remove_all_filters()`, only remove callbacks that match the `$priority` parameter. 2014-12-31 19:06:29 +00:00
functions.php Add unit test asserting that serializable objects will never pass is_serialized(). see #17375. 2015-05-28 05:22:14 +00:00
kses.php Don't strip `\0` (backslash+zero) from post content for users without "unfiltered_html" 2015-06-19 18:46:11 +00:00
l10n.php
link.php In PHPUnit test classes, `parent::tearDown()` should be the last thing done in `tearDown()` methods. 2015-03-05 13:14:15 +00:00
mail.php Make sure `$_SERVER['SERVER_NAME']` is set whenever `wp_mail()` is called in PHPUnit tests. 2015-06-18 13:52:29 +00:00
media.php YouTube oEmbed parsing: support the `m` subdomain. 2015-06-24 21:05:59 +00:00
meta.php
multisite.php Improve tests for `is_email_address_unsafe()`. 2015-05-28 16:05:30 +00:00
post.php Improve unit tests for `wp_unique_post_slug()`. 2015-05-26 18:07:17 +00:00
query.php Tests for some existing 'orderby' functionality in `WP_*_Query` classes. 2015-03-07 15:44:28 +00:00
rewrite.php Implement canonical and `url_to_postid()` tests for child pages which share a post name with other child pages. 2015-06-24 00:40:45 +00:00
shortcode.php In PHPUnit test classes, `parent::tearDown()` should be the last thing done in `tearDown()` methods. 2015-03-05 13:14:15 +00:00
taxonomy.php Filter out empty object_types in `register_taxonomy_for_object_type()`. 2015-06-08 19:44:32 +00:00
term.php Improve unit tests for `wp_unique_term_slug()`. 2015-05-15 20:37:51 +00:00
theme.php
upload.php
url.php In `get_adjacent_post()`, return private post if the current user has the capacity to read it. 2015-01-30 02:19:46 +00:00
user.php After [32884], update the default value for `comment_shortcuts`. 2015-06-22 20:43:58 +00:00
walker.php
widgets.php Add support for `WP_Widget::get_settings()` returning `ArrayIterator`/`ArrayObject` instances. 2015-05-26 16:50:03 +00:00