diff --git a/src/Services/GmailCom.php b/src/Services/GmailCom.php index aefb9ca..6f4a374 100644 --- a/src/Services/GmailCom.php +++ b/src/Services/GmailCom.php @@ -16,6 +16,6 @@ class GmailCom implements ServiceInterface public function isDomainSupported(string $domain) : bool { - return strtolower($domain) === 'gmail.com'; + return in_array(strtolower($domain), ['gmail.com', 'googlemail.com']); } } \ No newline at end of file diff --git a/tests/Services/GmailComTest.php b/tests/Services/GmailComTest.php index 7ee1ea6..bed265a 100644 --- a/tests/Services/GmailComTest.php +++ b/tests/Services/GmailComTest.php @@ -24,6 +24,7 @@ class GmailComTest extends \PHPUnit_Framework_TestCase ['Foo.Bar@GMAIL.COM', 'foobar@gmail.com'], ['foobar+alias@gmail.com', 'foobar@gmail.com'], ['fo.ob.ar+alias@gmail.com', 'foobar@gmail.com'], + ['JaneDoe@googlemail.com', 'janedoe@googlemail.com'], ]; }