Add Sendgrid integration (incoming email handling)

This commit is contained in:
Frederic Guillot
2015-04-19 19:23:42 -04:00
parent ac86c3100a
commit f190be9e2d
37 changed files with 380 additions and 89 deletions

View File

@@ -10,6 +10,16 @@ use Model\Project;
class UserTest extends Base
{
public function testGetByEmail()
{
$u = new User($this->container);
$this->assertNotFalse($u->create(array('username' => 'user1', 'password' => '123456', 'email' => 'user1@localhost')));
$this->assertNotFalse($u->create(array('username' => 'user2', 'password' => '123456', 'email' => '')));
$this->assertNotEmpty($u->getByEmail('user1@localhost'));
$this->assertEmpty($u->getByEmail(''));
}
public function testPassword()
{
$password = 'test123';