Wordpress/tests/phpunit/tests
Scott Taylor 15c1c2f130 Don't place smilies inside of pre or code tags. Don't skip smilie after a smilie with an 8 in it. Fix regular expression used for smiley translations to work when there is only one registered emoticon.
Props solarissmoke, soulseekah, mdbitz, yonasy. ht to mdbitz for the Unit Tests and a comprehensive patch.
Fixes #16448, #20124, #25303.



git-svn-id: https://develop.svn.wordpress.org/trunk@26191 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-15 02:45:39 +00:00
..
actions Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
admin Use @expectedDeprecated. see #25282, [25408]. 2013-09-12 18:37:32 +00:00
ajax Avoid `Out of range value for column 'post_parent'` error in `Tests_Ajax_MediaEdit::_make_attachment()` by setting the default parent id to `0` instead of `-1` 2013-11-11 17:51:29 +00:00
attachment Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
canonical Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
comment Fix undefined index notices in `comment/slashes` test cases. `wp_new_comment()` and `edit_comment()` expect more variables than were being passed. 2013-09-11 21:56:31 +00:00
dependencies Revert [25202] and enforce that wp_add_inline_style() does not want <style> tags. 2013-10-15 14:34:33 +00:00
export Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +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 Don't place smilies inside of pre or code tags. Don't skip smilie after a smilie with an 8 in it. Fix regular expression used for smiley translations to work when there is only one registered emoticon. 2013-11-15 02:45:39 +00:00
functions Use @expectedDeprecated. see #25282, [25408]. 2013-09-12 18:37:32 +00:00
general Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
http WP_HTTP: Replacing the Fsockopen & Streams Transports with a new Streams transport which fully supports HTTPS communication. 2013-09-04 04:48:21 +00:00
image `unlink()` the generated image in `Tests_Image_Intermediate_Size::test_make_intermediate_size_successful()` at the end of the test to avoid cruff in `svn diff`s. 2013-09-19 18:05:11 +00:00
import Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
includes Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
meta Produce proper `CAST` for `DECIMAL` and `NUMERIC` in Meta Query. Adds a bunch of unit tests. 2013-11-08 23:10:41 +00:00
option * Fill in undefined var in `Tests_Option_BlogOption` 2013-09-12 07:16:30 +00:00
pomo Suppress `Non-static method PO::*() should not be called statically, assuming $this from incompatible context` by using the `@` silencer in `tests/pomo/po.php` 2013-09-12 06:46:35 +00:00
post Fix inexcusable whitespace in `tests/phpunit/tests/post/query.php`. 2013-11-08 23:13:41 +00:00
query Respect `paged` when `offset` is used in `WP_Query`. Adds unit tests. 2013-11-05 01:34:44 +00:00
term Remove the Featured Content term filters when running Unit Tests. Set the return value of `wp_get_object_terms()` to a var before passing to `array_shift()` in `test_get_object_terms_types()`, which expects a var to be passed by reference. 2013-11-15 02:32:16 +00:00
theme Test runner: Add @expectedIncorrectUsage to trap _doing_it_wrong() calls. 2013-10-15 14:30:02 +00:00
user Use @expectedDeprecated. see #25282, [25408]. 2013-09-12 18:37:32 +00:00
xmlrpc Fix a failing unit test: an XML-RPC unit test for getPosts with filters was failing. The cause of the failure: a set of posts was created with create_many() and then paginated results were requested. The paginated results were meant to equal the original resultset when diff'd after all pages were joined. create_many() was assigning the same timestamp to all posts, so the LIMIT clause in the generated SQL was not operating as expected. I replaced the create_many() call with a create() loop that increments time by 1 each time. Unit test now passes. 2013-11-11 17:45:36 +00:00
actions.php Fix the PHP 5.4 `Only variables should be passed by reference` notices in `tests/action.php`. 2013-09-12 03:53:56 +00:00
adminbar.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
auth.php Move the trim() from wp_set_password() to inside wp_hash_password(). 2013-10-07 13:53:09 +00:00
basic.php Add a unit test to confirm that the version number in readme.html matches version.php. 2013-11-14 16:50:21 +00:00
cache.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
canonical.php Set the `page_comments` option to `true` in `Tests_Canonical` to properly check canonical redirection for paged comments. By doing so, one assertion tied to #20388 no longer needs to be. 2013-11-11 18:57:11 +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 Pass `$args` as an array, rather than a splat, to `wp_clear_scheduled_hook()`. There are comments in the code describing the deprecated argument behavior. 2013-09-11 22:21:43 +00:00
db.php Passing non-existent object properties to `WP_UnitTestCase::assertNull()` produces notices, opt instead for `WP_UnitTestCase::assertTrue( empty( $obj->prop ) )` in `tests/db.php`. 2013-09-12 04:01:34 +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 Fix the PHP 5.4 `Only variables should be passed by reference` notices in `tests/filters.php`. 2013-09-12 04:16:59 +00:00
functions.php Replace the ancient `phpfreaks.com` RegEx to extract urls to ping with a more robust matcher. URLs with commas and things like `&amp;` were not being pinged. The new matcher even works for most IDN URLs. Adds unit tests. 2013-09-10 03:17:51 +00:00
iterators.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
kses.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +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 Add a $taxonomy argument to each of the adjacent post functions. 2013-10-27 21:39:51 +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 Use @expectedDeprecated. see #25282, [25408]. 2013-09-12 18:37:32 +00:00
meta.php When `meta_type` is passed with `orderby => meta_value`, `orderby` must also use `CAST()` to avoid scenarios like: `SELECT`ing by `UNSIGNED` and then ordering by `CHAR`. Adds unit test. 2013-09-05 16:56:36 +00:00
ms.php Live network counts of users and sites for small networks. 2013-09-25 16:20:21 +00:00
post.php Move the unit test added in [25974] to the more appropriate file. see #25750. 2013-10-29 01:47:48 +00:00
query.php Introduce a reset_postdata() method on the WP_Query object, which wp_reset_postdata() now wraps. 2013-09-24 15:52:41 +00:00
rewrite.php Make `url_to_postid()` work for custom post type URLs. Use `get_post_types()` and `get_taxonomies()` instead of directly accessing globals. Adds unit test. 2013-10-02 19:41:19 +00:00
shortcode.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
taxonomy.php 3.7 regression from [25119]: Have in_category() return false when the first argument is empty. 2013-10-26 02:53:30 +00:00
term.php Remove the Featured Content term filters when running Unit Tests. Set the return value of `wp_get_object_terms()` to a var before passing to `array_shift()` in `test_get_object_terms_types()`, which expects a var to be passed by reference. 2013-11-15 02:32:16 +00:00
theme.php Use @expectedDeprecated. see #25282, [25408]. 2013-09-12 18:37:32 +00:00
upload.php The test for #5953 doesn't require the ticket to be closed for its assertions to pass. 2013-11-11 21:23:39 +00:00
url.php Don't assume `$GLOBALS['post']` is set in `tests/url.php`. 2013-09-12 05:52:53 +00:00
user.php Reinstate an assertion commented out in [25409]. This test is skipped due to @ticket anyway. see #25282. 2013-09-14 19:17:31 +00:00
widgets.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00