[buddypress-trac] [BuddyPress Trac] #7254: PHPUnit tests does not call plugin activation hook.
buddypress-trac
noreply at wordpress.org
Tue Sep 13 18:45:35 UTC 2016
#7254: PHPUnit tests does not call plugin activation hook.
------------------------------+---------------------
Reporter: DJPaul | Owner: djpaul
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.7
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: |
------------------------------+---------------------
Changes (by djpaul):
* owner: => djpaul
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"11096"]:
{{{
#!CommitTicketReference repository="" revision="11096"
Tests: fix plugin activation in PHPUnit bootstrap.
In the bootstrap, we load BuddyPress into the WordPress by including the
BuddyPress file directly, hooked to `muplugins_loaded`.
This has worked well except the standard plugin activation actions that
`activate_plugins()` would usually trigger, aren't called.
BuddyPress hooks to the activation action in `bp_activation()` to call
`bp_add_options()`, which adds default options and values to the database.
This change calls the required action manually, fixing the PHPUnit
environment set-up, required after r11094.
Fixes #7254
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7254#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list