wordpress-develop/tests/phpunit/tests/term
Gary Pendergast b4a6de9997 Database: Throw a notice if wpdb::prepare() is called with an incorrect number of arguments
`wpdb::prepare()` currently gives no information if the number of arguments passed doesn't match the number of placeholders in the query. This change gives an explicit notice that the call was incorrect.

Also fixes an enrelated term meta test that was triggering this new notice.

Props thekt12 for the initial patch.
Fixes #42040.



git-svn-id: https://develop.svn.wordpress.org/trunk@41662 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-02 02:10:14 +00:00
..
cache.php Taxonomy: Better error handling when fetching object terms from cache. 2016-10-11 01:55:58 +00:00
categoryExists.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getEditTermLink.php Fix test related to cap check in get_edit_term_link(). 2016-03-14 01:51:12 +00:00
getTerm.php Make get_term() behave more consistently in the context of shared terms. 2015-11-05 16:44:59 +00:00
getTermBy.php Improve querying for terms with falsey names and slugs. 2017-03-16 02:03:53 +00:00
getTermField.php Tests: Add some more test coverage for get_term_field(). 2015-10-19 03:28:49 +00:00
getTermLink.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getTermParentsList.php Taxonomy: Introduce get_term_parents_list(). 2016-12-09 16:09:31 +00:00
getTerms.php Improve querying for terms with falsey names and slugs. 2017-03-16 02:03:53 +00:00
getTheTerms.php Invalidate term query caches when setting or deleting term relationships. 2017-03-30 16:49:47 +00:00
isObjectInTerm.php In is_object_in_term(), return error object rather than caching it. 2016-08-18 19:14:52 +00:00
meta.php Database: Throw a notice if wpdb::prepare() is called with an incorrect number of arguments 2017-10-02 02:10:14 +00:00
query.php Taxonomy: Force a DISTINCT term query when result count matters. 2017-09-13 14:47:07 +00:00
slashes.php Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static). 2015-10-17 19:24:20 +00:00
splitSharedTerm.php When splitting a shared 'nav_menu' term, ensure that nav items and theme locations are retained. 2015-08-12 14:06:21 +00:00
taxQuery.php Use WP_Term_Query when transforming tax queries. 2017-06-21 03:56:25 +00:00
termExists.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
wpDeleteObjectTermRelationships.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
wpDeleteTerm.php Taxonomy: Pass object ids to delete_* actions. 2015-12-23 23:43:03 +00:00
wpGenerateTagCloud.php Widgets: Remove the title attributes used in the Tag cloud widget. 2017-05-22 20:23:49 +00:00
wpGetObjectTerms.php Taxonomy: Avoid duplicates when querying for terms in taxonomies registered with $args parameter. 2017-07-13 13:40:39 +00:00
wpInsertTerm.php Taxonomy: Take 'parent' into account when checking for terms with duplicate names. 2017-03-03 02:49:13 +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: Utilise assertWPError() and assertNotWPError() in more places. 2016-11-09 00:01:42 +00:00
wpTaxonomy.php Build/Test Tools: Add assertNotFalse() method to WP_UnitTestCase and use it where appropriate. 2017-01-17 03:39:36 +00:00
wpTerm.php Taxonomy: Ignore cached term value when it doesn't match the queried taxonomy. 2017-07-01 11:45:09 +00:00
wpUniqueTermSlug.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
wpUpdateTerm.php Build/Test Tools: Utilise assertWPError() and assertNotWPError() in more places. 2016-11-09 00:01:42 +00:00