buddypress/tests/phpunit/testcases
Mathieu Viet 3a1f663e19 Introduce theme support check for specific component features
Some of the feature we'll soon introduce like the Block based activity post form will need standalone BP themes to do some adjustments to their code to support them.

Once done, they'll need to opt-in for these features using the WordPress `add_theme_support()` function. The first argument for this function remains `buddypress`. Supporting BP component specific features will need to use a second argument: an associative array keyed by BP Component IDs. For instance, it will be `array( 'activity' => array( 'block-editor' ) )` when a theme support the future Block based activity post form.

In BuddyPress code, we'll then be able for example to use the following kind of check `bp_current_theme_supports( array( 'activity' => 'block-editor' ) )` to be sure the theme fully support the feature.

Props espellcaste

See #8319
Closes https://github.com/buddypress/buddypress/pull/301



git-svn-id: https://buddypress.svn.wordpress.org/trunk@13912 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2024-06-08 06:09:24 +00:00
..
activity Activity: make sure streams are paginated the right way 2024-02-14 06:26:17 +00:00
admin Improve the page / buddypress post types slugs unicity checks 2024-03-24 07:39:16 +00:00
blogs Make Activity loop reliable when post & activity comments are synced 2023-11-10 02:09:10 +00:00
core Introduce theme support check for specific component features 2024-06-08 06:09:24 +00:00
friends Improve comparison consistency in BP_Friends_Friendship 2023-02-23 00:04:36 +00:00
groups Groups: joining a group needs to wait for group status to be defined 2024-05-26 04:56:49 +00:00
members Spamming users/Multisite: WP spam marker value is now the '1' string 2024-06-02 06:35:51 +00:00
messages Unit tests are run with Memcache or/and Redis in CI (Continuous Integration) 2024-05-11 02:15:24 +00:00
notifications Improve PHP 8.2 compatibility 2023-02-10 03:12:09 +00:00
routing Update wp-env to version 9.0.0 & adapt the PHPUnit tests suite to it 2024-01-31 20:09:06 +00:00
settings Improve sanitization of email notification settings. 2015-11-11 03:22:53 +00:00
testsuite Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
xprofile While pulling XProfile group fields objects from cache with the BP_XProfile_Group::get method, 2024-04-20 18:48:57 +00:00