Fix tests
This commit is contained in:
@@ -113,10 +113,6 @@ function wiaas_db_setup_exclusive_taxonomies() {
|
||||
));
|
||||
}
|
||||
|
||||
function wiaas_db_setup_default_cl() {
|
||||
wp_insert_term(Wiaas_Pricing::COMMERCIAL_LEAD_NAME, Wiaas_User_Organization::TAXONOMY_NAME);
|
||||
}
|
||||
|
||||
function wiaas_db_setup_customer_capabilities() {
|
||||
$customer_role = get_role('customer');
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ function wiaas_db_update_create_default_roles() {
|
||||
array(
|
||||
'read',
|
||||
'view_admin_dashboard',
|
||||
'wiaas_manage_cl_products'
|
||||
)
|
||||
);
|
||||
|
||||
@@ -137,4 +136,9 @@ function wiaas_db_import_aam_role_settings() {
|
||||
'gravityforms-new-form' => '1',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
function wiaas_db_update_update_commercial_lead_capabilities() {
|
||||
// add commercial lead specific roles
|
||||
wp_roles()->add_cap( 'commercial_lead', 'manage_wiaas_cl_products' ); // cl products screen
|
||||
}
|
||||
Reference in New Issue
Block a user