Opened 12 years ago
Closed 12 years ago
#4946 closed defect (bug) (fixed)
'blogs' component not activated when running test suite
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 1.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch commit |
Cc: |
Description
When running the BuddyPress test suite with my unit tests, I expected BuddyPress to emit "activity stream"-related actions/filters whenever I create new blogs/post via the respective factory methods, but no such actions were emitted. From debugging I can tell that other actions like "bp_loaded" were in fact emitted so BuddyPress is loading up in the test environment.
On IRC, we tracked it down to the fact that the 'blogs' component is not enabled during setup of the test environment in tests/includes/install.php and concluded 'blogs' should be activated regardless of whether is multisite or not.
I will attach a patch.
Good catch, splatte!