Skip to:

Opened 11 years ago

Closed 11 years ago

#4946 closed defect (bug) (fixed)

'blogs' component not activated when running test suite

Reported by: splatte's profile splatte Owned by: boonebgorges's profile boonebgorges
Milestone: 1.8 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch commit


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.

Attachments (1)

4946.001.diff (576 bytes) - added by splatte 11 years ago.

Download all attachments as: .zip

Change History (3)

11 years ago

#1 @r-a-y
11 years ago

  • Keywords has-patch commit added
  • Milestone changed from Awaiting Review to 1.8
  • Version 1.7 deleted

Good catch, splatte!

#2 @boonebgorges
11 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 6942:

Make sure the Blogs component is activated when test suite installs BP

Fixes #4946

Props splatte

Note: See TracTickets for help on using tickets.