Only count published daily emails

This commit is contained in:
Oliver Davies 2025-05-12 08:05:20 +01:00
parent c48f8acd4a
commit b479e15b66
2 changed files with 10 additions and 5 deletions

View file

@ -19,12 +19,16 @@ final class DailyEmailNodeRepositoryTest extends EntityKernelTestBase {
'opd_daily_emails',
];
/**
* @testdox Get all daily emails
*/
public function test_get_all(): void {
public function test_get_all_published_daily_emails(): void {
$this->createNode([
'status' => NodeInterface::PUBLISHED,
'title' => 'A published daily email',
'type' => 'daily_email',
]);
$this->createNode([
'status' => NodeInterface::NOT_PUBLISHED,
'title' => 'An unpublished daily email',
'type' => 'daily_email',
]);