[buddypress-trac] [BuddyPress Trac] #5681: page directory ids don't update when component is deactivated
buddypress-trac
noreply at wordpress.org
Tue Nov 25 14:07:33 UTC 2014
#5681: page directory ids don't update when component is deactivated
-------------------------------------------------+-------------------------
Reporter: modemlooper | Owner:
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 2.2
Component: Core | Version: 2.0
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests good- |
first-bug |
-------------------------------------------------+-------------------------
Comment (by boonebgorges):
Replying to [comment:11 Mamaduka]:
> My patch includes only change required for core. Not sure how to handle
tests for this one.
Thanks, Mamaduka. This looks like a good change, but note that it's sorta
the opposite of the bug originally being reported in this ticket.
As for tests, they will look just like the manual tests you were doing:
* one test will delete a directory post, and then pull up
`bp_core_get_directory_page_ids()` to make sure the post has been removed
* another will delete a post that is *not* a directory post, then pull up
`bp_core_get_directory_page_ids()` to make sure it hasn't been touched.
In each case, make sure that the test cleans up after itself, by ensuring
that there is a full set of directory pages.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5681#comment:12>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list