protected function create() { $date = time(); $emailSpool = new EmailSpool('create'); $emailSpool->transport = 'the transport'; $emailSpool->template = 'the template'; $emailSpool->priority = 99; $emailSpool->status = 'the status'; $emailSpool->model_name = 'the model_name'; $emailSpool->model_id = 'the model_id'; $emailSpool->to_address = 'the to_address'; $emailSpool->from_address = 'the from_address'; $emailSpool->subject = 'the subject'; $emailSpool->message = 'the message'; $emailSpool->sent = $date; $emailSpool->created = $date; $save = $emailSpool->save(); $this->emailSpool = $emailSpool; $this->assertTrue($save); $this->codeGuy->seeInDatabase('email_spool', array('transport' => 'the transport', 'template' => 'the template', 'priority' => 99, 'status' => 'the status', 'model_name' => 'the model_name', 'model_id' => 'the model_id', 'to_address' => 'the to_address', 'from_address' => 'the from_address', 'subject' => 'the subject', 'message' => 'the message', 'sent' => $date, 'created' => $date)); }