buddypress/tests/phpunit
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
..
assets Improve BP_Component methods relative to setting BP Rewrites 2023-02-15 10:23:05 +00:00
includes WPCS: The modified code addresses all Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword and Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction issues specific to the foreach and function examples. 2024-06-01 16:26:18 +00:00
testcases Introduce theme support check for specific component features 2024-06-08 06:09:24 +00:00
bootstrap.php Update wp-env to version 9.0.0 & adapt the PHPUnit tests suite to it 2024-01-31 20:09:06 +00:00
codecoverage.xml Travis-CI: disable xdebug globally and switch travis:codecoverage to use xdebug instead of phpdbg. 2016-08-08 13:36:32 +00:00
multisite.xml Tests: Fix missing 'name' attribute warning for PHPUnit 7. 2020-06-16 04:34:24 +00:00