mirror of
https://github.com/retailcrm/transparent-email.git
synced 2024-11-22 05:16:05 +03:00
Tests for MultiDomain
This commit is contained in:
parent
a2e4dbd2e4
commit
a6f47f903b
@ -30,7 +30,13 @@ abstract class MultiDomain implements ServiceInterface
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string Hostname in lowercase
|
||||
*/
|
||||
abstract protected function getPrimaryDomain() : string;
|
||||
|
||||
/**
|
||||
* @return array List of hostnames in lowercase
|
||||
*/
|
||||
abstract protected function getDomainList() : array;
|
||||
}
|
@ -23,7 +23,8 @@ class MultiDomainTest extends \PHPUnit_Framework_TestCase
|
||||
return [
|
||||
[$this->getMultiDomainMock('foo.bar', ['foo.bar']), 'gmail.com', false],
|
||||
[$this->getMultiDomainMock('foo.bar', ['foo.bar', 'gmail.com']), 'gmail.com', true],
|
||||
[$this->getMultiDomainMock('Foo.Bar', ['foo.bar', 'gmail.com']), 'gmail.com', true],
|
||||
[$this->getMultiDomainMock('foo.bar', ['foo.bar', 'gmail.com']), 'GMAIL.COM', true],
|
||||
[$this->getMultiDomainMock('foo.bar', ['foo.bar', 'gmail.com'], true), 'GMAIL.COM', true],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user