1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-23 21:06:56 +08:00
buddypress/tests/phpunit/testcases/core/nav
Mathieu Viet 89a6666dc6 Fully enjoy Yoast’s PHPUnit polyfills
Using these polyfills let us use PHPUnit v9.x for our tests and add PHP 8.1 to our testing matrix. Some additional edits to our PHP unit tests suite were needed:

- Stop using PHPunit deprecated functions.
- Rename some `BP_UnitTestCase` methods to use Yoast's polyfills.
- Edit the PHP Unit test GH action and also run this action on pull requests.
- Update some composer dependencies, remove the one about `phpunit/phpunit:^7.5` and add a new composer script to use PHPUnit v9.x. 

Props renatonascalves, rafiahmedd

Closes https://github.com/buddypress/buddypress/pull/13
Fixes #8649


git-svn-id: https://buddypress.svn.wordpress.org/trunk@13314 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2022-08-13 08:58:51 +00:00
..
backCompat.php Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +00:00
bpCoreMaybeHookNewSubnavScreenFunction.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
bpCoreNewNavItem.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
bpCoreNewSubnavItem.php Navigation: Ensure subnav menus can be registered before the parent nav is registered. 2018-07-24 02:52:25 +00:00
bpCoreRemoveNavItem.php Fix incorrect remove_action and remove_filter usage for WordPress 4.7. 2016-11-28 22:33:55 +00:00
bpCoreRemoveSubnavItem.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
bpGetNavMenuItems.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00