Return the email nodes, not just the node IDs

This commit is contained in:
Oliver Davies 2025-05-12 08:19:33 +01:00
parent 7e32227e7d
commit 1013305d38
4 changed files with 44 additions and 9 deletions

View file

@ -39,9 +39,16 @@ final class DailyEmailNodeRepositoryTest extends EntityKernelTestBase {
expected: DailyEmailRepositoryInterface::class,
);
$emails = $repository->getAll();
$this->assertCount(
expectedCount: 1,
haystack: $repository->getAll(),
haystack: $emails,
);
$this->assertSame(
expected: 'A published daily email',
actual: $emails->first()->label(),
);
}