1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-21 20:54:17 +08:00
buddypress/tests/phpunit/testcases/core
r-a-y 302843f875 Navigation: Ensure subnav menus can be registered before the parent nav is registered.
In #7659, a bug was fixed where restricted subnav menus should be
redirected instead of throwing a 404.  The side-effect of the fix is this
broke how plugins can register subnav menus before the parent nav is
created.

This commit rectifies the problem by not bailing out if the parent nav
cannot be found during subnav menu registration.  Includes a unit-test.

Props dontdream, boonebgorges, r-a-y.

Fixes #7931 (3.x branch).

git-svn-id: https://buddypress.svn.wordpress.org/branches/3.0@12194 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2018-07-24 02:52:05 +00:00
..
functions Unit Tests: Improve performance of multisite directory page test. 2018-03-04 19:55:02 +00:00
nav Navigation: Ensure subnav menus can be registered before the parent nav is registered. 2018-07-24 02:52:05 +00:00
template Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
avatars.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
cache.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
caps.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
class-bp-attachment.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
class-bp-button.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
class-bp-core-user.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
class-bp-email-recipient.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
class-bp-email.php Tests, PHPUnit: test sending a different email type. 2018-01-03 12:05:25 +00:00
class-bp-media-extractor.php Tests, PHPUnit: fix tests which assume WP_CONTENT_DIR is always /wp-content. 2018-02-04 16:37:24 +00:00
class-bp-user-query.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
functions.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
suggestions-nonauth.php Ensure that shared user fixtures are fully cleaned up. 2017-11-03 21:11:52 +00:00
suggestions.php Ensure that shared user fixtures are fully cleaned up. 2017-11-03 21:11:52 +00:00