Add Sendgrid integration (incoming email handling)
This commit is contained in:
15
tests/units/ToolTest.php
Normal file
15
tests/units/ToolTest.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/Base.php';
|
||||
|
||||
use Core\Tool;
|
||||
|
||||
class ToolTest extends Base
|
||||
{
|
||||
public function testMailboxHash()
|
||||
{
|
||||
$this->assertEquals('test1', Tool::getMailboxHash('a+test1@localhost'));
|
||||
$this->assertEquals('', Tool::getMailboxHash('test1@localhost'));
|
||||
$this->assertEquals('', Tool::getMailboxHash('test1'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user