Inject the TalkRepository into TalkCounter

This commit is contained in:
Oliver Davies 2021-02-10 02:30:10 +00:00
parent 29d88893fa
commit afc0a0e448
3 changed files with 20 additions and 18 deletions

View file

@ -47,7 +47,7 @@ final class TalkRepositoryTest extends TalksTestBase {
'status' => NodeInterface::NOT_PUBLISHED,
]);
$talks = $this->talkRepository->getAll(TRUE);
$talks = $this->talkRepository->findAllPublished();
$this->assertCount(1, $talks);
$this->assertSame('TDD - Test Driven Drupal', $talks->first()->label());