diff --git a/tests/EventListener/AdminEmailTokenListenerTest.php b/tests/EventListener/AdminEmailTokenListenerTest.php index 6577970..40d6924 100644 --- a/tests/EventListener/AdminEmailTokenListenerTest.php +++ b/tests/EventListener/AdminEmailTokenListenerTest.php @@ -109,21 +109,8 @@ private function mockFrameworkWithAdminEmail(string|null $adminEmail = null): Co ->willReturn($adminEmail) ; - $stringUtilAdapter = $this->mockAdapter(['splitFriendlyEmail']); - $stringUtilAdapter - ->method('splitFriendlyEmail') - ->willReturnCallback( - static fn (string $email): array => match ($email) { - 'Lorem Ipsum [foobar-config@terminal42.ch]' => ['Lorem Ipsum', 'foobar-config@terminal42.ch'], - 'Dolor Sitamet [foobar@terminal42.ch]' => ['Dolor Sitamet', 'foobar@terminal42.ch'], - default => ['', $email], - }, - ) - ; - return $this->mockContaoFramework([ Config::class => $configAdapter, - // StringUtil::class => $stringUtilAdapter, ]); } }