- Adds tests for the main Import class

- Updates tests for Env (proper host detection with port)
- Improves import
This commit is contained in:
MrCasual
2015-11-09 00:24:39 -05:00
parent 33ea16eb0f
commit 7b54285ca6
9 changed files with 402 additions and 105 deletions

View File

@@ -15,12 +15,12 @@ class BootstrapMenu {
function getSubscriberFields() {
return array(
's_email' => __('Email'),
's_first_name' => __('First name'),
's_last_name' => __('Last name'),
's_status' => __('Status')
/* 's_confirmed_ip' => __('IP address')
's_confirmed_at' => __('Subscription date')*/
'email' => __('Email'),
'first_name' => __('First name'),
'last_name' => __('Last name'),
'status' => __('Status')
/* 'confirmed_ip' => __('IP address')
'confirmed_at' => __('Subscription date')*/
);
}
@@ -44,7 +44,7 @@ class BootstrapMenu {
return array(
'id' => $fieldId,
'name' => $fieldName,
'type' => ($fieldId === 's_confirmed_at') ? 'date' : null,
'type' => ($fieldId === 'confirmed_at') ? 'date' : null,
'custom' => false
);
}, array_keys($subscriberFields), $subscriberFields);