wordpress-develop/tests/phpunit/tests/term
Sergey Biryukov 110f132f7e General: Ensure consistent type for integer properties of WP_Post, WP_Term, and WP_User.
Previously, these properties could be unexpectedly converted to strings in some contexts.

This applies to the following functions:

* `sanitize_post_field()`
* `sanitize_term_field()`
* `sanitize_user_field()`

and the following properties:

* `WP_Post::ID`
* `WP_Post::post_parent`
* `WP_Post::menu_order`
* `WP_Term::term_id`
* `WP_Term::term_taxonomy_id`
* `WP_Term::parent`
* `WP_Term::count`
* `WP_Term::term_group`
* `WP_User::ID`

Props grantmkin, SergeyBiryukov.
Fixes #53235. See #52995.

git-svn-id: https://develop.svn.wordpress.org/trunk@50935 602fd350-edb4-49c9-b593-d223f7449a82
2021-05-19 22:10:58 +00:00
..
cache.php Tests: Use assertInstanceOf() instead of assertTrue() in some tests. 2021-05-18 21:04:31 +00:00
categoryExists.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getEditTermLink.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
getTagLink.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
getTerm.php General: Ensure consistent type for integer properties of WP_Post, WP_Term, and WP_User. 2021-05-19 22:10:58 +00:00
getTermBy.php Tests: Use assertInstanceOf() instead of assertTrue() in some tests. 2021-05-18 21:04:31 +00:00
getTermField.php Tests: Fix two typos introduced for a get_term_field() test in [35270]. 2018-02-03 17:10:51 +00:00
getTermLink.php Taxonomy: Use a consistent check for the $rewrite['hierarchical'] parameter. 2021-03-23 13:53:50 +00:00
getTermParentsList.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
getTerms.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
getTheTerms.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
isObjectInTerm.php Code is Poetry. 2017-11-30 23:09:33 +00:00
meta.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
query.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
slashes.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
splitSharedTerm.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
taxQuery.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
termCounts.php Taxonomy: Add filter for post statuses when updating term count. 2021-02-02 21:04:58 +00:00
termExists.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:13:57 +00:00
wpDeleteObjectTermRelationships.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
wpDeleteTerm.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:13:57 +00:00
wpGenerateTagCloud.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
wpGetObjectTerms.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
wpInsertTerm.php Taxonomy: Correct and clarify documentation for the return types of term query functions. 2021-01-08 15:22:17 +00:00
wpRemoveObjectTerms.php Bust object term cache in wp_remove_object_terms(). 2015-10-19 01:52:22 +00:00
wpSetObjectTerms.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
wpTaxonomy.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
wpTerm.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
wpUniqueTermSlug.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
wpUpdateTerm.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00