Should we test in admin environment?
Commit the queries in a transaction.
This function is provided by WordPress only from version 4.1 onwards, but because we still maintain support for WordPress 3.8 for certain plugins, we add this function to make sure plugin tests that requires commit of transactions can still be built against verrsion 3.8.
create_many_terms(integer $count, array $args = array(), array|null $generation_definitions = null)
Create many dummy terms for testing.
Since WordPress 4.4 the
WP_UnitTest_Generator_Sequence has been using
a static counter, which makes the data of created dummy items
unpredictable. This method is used to create dummy items in a
predictable manner. This is mostly the same as