コード例 #1
0
 public function testMessageSetCC()
 {
     $this->assertInstanceOf('\\nickcv\\mandrill\\Message', $this->_message->setCc('*****@*****.**'));
     $this->assertInstanceOf('\\nickcv\\mandrill\\Message', $this->_message->setCc(['*****@*****.**' => 'fakeuser', '*****@*****.**', '*****@*****.**', 'asdf', 'fakeuser' => '*****@*****.**']));
     $contactList = $this->_message->getCc();
     $this->assertCount(3, $contactList);
     $this->assertContains('*****@*****.**', $contactList);
     $this->assertArrayHasKey('*****@*****.**', $contactList);
     $this->assertContains('*****@*****.**', $contactList);
     $this->assertContains('fakeuser', $contactList);
 }