Skip to content

Commit

Permalink
Cleanup leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Sep 17, 2024
1 parent 00795e0 commit 0e8563b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/EventListener/AdminEmailTokenListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
}
}

0 comments on commit 0e8563b

Please sign in to comment.