Only count published daily emails
This commit is contained in:
parent
c48f8acd4a
commit
b479e15b66
2 changed files with 10 additions and 5 deletions
|
@ -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',
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue