From c37541a790cdb04654b0a6c3d32acd7821589380 Mon Sep 17 00:00:00 2001 From: bkrukowski Date: Tue, 13 Sep 2016 18:01:07 +0200 Subject: [PATCH] Support for googlemail.com --- src/Services/GmailCom.php | 2 +- tests/Services/GmailComTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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'], ]; }