Change order of wc_install to after db tables created
This commit is contained in:
parent
574d82bd16
commit
79e3f15696
|
@ -177,12 +177,12 @@ class WC_Unit_Tests_Bootstrap {
|
|||
define( 'WC_REMOVE_ALL_DATA', true );
|
||||
include $this->plugin_dir . '/uninstall.php';
|
||||
|
||||
WC_Install::install();
|
||||
|
||||
// Initialize the WC API extensions.
|
||||
\Automattic\WooCommerce\Admin\Install::create_tables();
|
||||
\Automattic\WooCommerce\Admin\Install::create_events();
|
||||
|
||||
WC_Install::install();
|
||||
|
||||
// Reload capabilities after install, see https://core.trac.wordpress.org/ticket/28374.
|
||||
if ( version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) {
|
||||
$GLOBALS['wp_roles']->reinit();
|
||||
|
|
Loading…
Reference in New Issue