Support for googlemail.com

This commit is contained in:
bkrukowski 2016-09-13 18:01:07 +02:00
parent a6f47f903b
commit c37541a790
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,6 @@ class GmailCom implements ServiceInterface
public function isDomainSupported(string $domain) : bool public function isDomainSupported(string $domain) : bool
{ {
return strtolower($domain) === 'gmail.com'; return in_array(strtolower($domain), ['gmail.com', 'googlemail.com']);
} }
} }

View File

@ -24,6 +24,7 @@ class GmailComTest extends \PHPUnit_Framework_TestCase
['Foo.Bar@GMAIL.COM', 'foobar@gmail.com'], ['Foo.Bar@GMAIL.COM', 'foobar@gmail.com'],
['foobar+alias@gmail.com', 'foobar@gmail.com'], ['foobar+alias@gmail.com', 'foobar@gmail.com'],
['fo.ob.ar+alias@gmail.com', 'foobar@gmail.com'], ['fo.ob.ar+alias@gmail.com', 'foobar@gmail.com'],
['JaneDoe@googlemail.com', 'janedoe@googlemail.com'],
]; ];
} }