Return the email nodes, not just the node IDs
This commit is contained in:
parent
7e32227e7d
commit
1013305d38
4 changed files with 44 additions and 9 deletions
|
@ -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(),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue