public function Mandrill_SubaccountsTest::getList in Mandrill 7.2
See also
Mandrill_Subaccounts::getList()
File
- tests/
includes/ mandrill_subaccounts_test.inc, line 15 - A virtual Mandrill Subaccounts API implementation for use in testing.
Class
- Mandrill_SubaccountsTest
- @file A virtual Mandrill Subaccounts API implementation for use in testing.
Code
public function getList($q = NULL) {
$subaccounts = array();
// Test Customer One
$subaccount = array(
'id' => 'test-customer-1',
'name' => 'Test Customer One',
'custom_quota' => 42,
'status' => 'active',
'reputation' => 42,
'created_at' => '2013-01-01 15:30:27',
'first_sent_at' => '2013-01-01 15:30:29',
'sent_weekly' => 42,
'sent_monthly' => 42,
'sent_total' => 42,
);
$subaccounts[] = $subaccount;
// Test Customer Two
$subaccount = array(
'id' => 'test-customer-2',
'name' => 'Test Customer Two',
'custom_quota' => 42,
'status' => 'active',
'reputation' => 42,
'created_at' => '2013-01-01 15:30:27',
'first_sent_at' => '2013-01-01 15:30:29',
'sent_weekly' => 42,
'sent_monthly' => 42,
'sent_total' => 42,
);
$subaccounts[] = $subaccount;
return $subaccounts;
}