public function isStoppedSendingEmail(string $email): bool
{
return (bool)$this->entityManager
->getRepository(StopEmail::class)
->findOneBy(['email' => $email]);
}
public function testIsStoppedSendingEmail(): void
{
$this->entityManager
->method('findOneBy')
->willReturn(new \stdClass());
}