diff --git a/Classes/Domain/Service/Provider/CustomerMail.php b/Classes/Domain/Service/Provider/CustomerMail.php index 75bc140c..67437966 100644 --- a/Classes/Domain/Service/Provider/CustomerMail.php +++ b/Classes/Domain/Service/Provider/CustomerMail.php @@ -3,8 +3,6 @@ declare(strict_types=1); namespace In2code\Lux\Domain\Service\Provider; -use TYPO3\CMS\Extbase\Configuration\Exception\InvalidConfigurationTypeException; - /** * Class CustomerMail * this class can decide if an email belongs to a b2c or b2b contact diff --git a/Tests/Unit/Utility/EmailUtilityTest.php b/Tests/Unit/Utility/EmailUtilityTest.php index d85283eb..07835929 100644 --- a/Tests/Unit/Utility/EmailUtilityTest.php +++ b/Tests/Unit/Utility/EmailUtilityTest.php @@ -55,7 +55,7 @@ public function testExtendEmailReceiverArray(array $emails, ?string $name, array } else { $result = EmailUtility::extendEmailReceiverArray($emails); } - $this->assertSame($expectedResult, $result); + self::assertSame($expectedResult, $result); } /** @@ -64,9 +64,9 @@ public function testExtendEmailReceiverArray(array $emails, ?string $name, array */ public function testGetDomainFromEmail(): void { - $this->assertSame('in2code.de', EmailUtility::getDomainFromEmail('test@in2code.de')); - $this->assertSame('fuz.bayern', EmailUtility::getDomainFromEmail('foo.bar@fuz.bayern')); - $this->assertSame('', EmailUtility::getDomainFromEmail('')); - $this->assertSame('', EmailUtility::getDomainFromEmail('foobar')); + self::assertSame('in2code.de', EmailUtility::getDomainFromEmail('test@in2code.de')); + self::assertSame('fuz.bayern', EmailUtility::getDomainFromEmail('foo.bar@fuz.bayern')); + self::assertSame('', EmailUtility::getDomainFromEmail('')); + self::assertSame('', EmailUtility::getDomainFromEmail('foobar')); } }