Example #1
0
 /**
  * Test email creation
  */
 public function testSetup()
 {
     $create = new Create($this->emailListId, $this->email);
     // check HTTP method
     $this->assertSame('POST', $create->getRequestMethod());
     // check url
     $this->assertSame('email-list/' . $this->emailListId . '/email', $create->getRequestUrl());
 }
Example #2
0
 /**
  * Test the checking works
  */
 public function testCheck()
 {
     $create = new Create($this->emailListId, $this->email);
     $this->assertTrue(Signer::check('147b861878241cd0040fa9297c3db54e03b93382:' . $this->timestamp, $this->authKey, $create->getRequestUrl(), $create->getRequestData()));
 }