> ArgumentCountError: Too few arguments to function Drupal\Core\Entity\EntityTypeManager::__construct(), 0 passed in /home/opdavies/Code/github.com/opdavies/atdc/web/modules/custom/example/tests/src/Unit/PostNodeRepositoryUnitTest.php on line 17 and exactly 6 expected
> ArgumentCountError: Too few arguments to function Drupal\example\Repository\PostNodeRepository::__construct(), 0 passed in /home/opdavies/Code/github.com/opdavies/atdc
/web/modules/custom/example/tests/src/Unit/PostNodeRepositoryUnitTest.php on line 15 and exactly 1 expected
> Drupal\Core\DependencyInjection\ContainerNotInitializedException: \Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container.
> Exception: Exception when installing config for module example_test, message was: Field 'field_tags' on entity type 'node' references a target entity type 'taxonomy_term' which does not exist.
- Add initial `PostNodeRepository`
- Move logic to Repository
- Inject `EntityTypeManagerInterface`
- Add `PostNodeRepositoryTest`
- Add failing test method
- Failing test: non-existent service
- The "node" entity type does not exist.
- Create posts
- Add assertions based on the `created` date
- Sort nodes before returning them
- Return values to reset array keys