You are here

public function Mandrill_SendersTest::timeSeries in Mandrill 7.2

See also

Mandrill_Senders::timeSeries()

File

tests/includes/mandrill_senders_test.inc, line 47
A virtual Mandrill Senders API implementation for use in testing.

Class

Mandrill_SendersTest
@file A virtual Mandrill Senders API implementation for use in testing.

Code

public function timeSeries($address) {
  $time_series = array();
  $senders = $this
    ->getSendersTestData();
  foreach ($senders as $sender) {
    if ($sender['address'] == $address) {
      $time_series[] = $sender['stats']['last_30_days'];
    }
  }
  return $time_series;
}