Commit graph

5 commits

Author SHA1 Message Date
dcace271a2 4f: Build up the getAll() method
Inject the entity type manager service into the ArticleRepository, and
use it to load and return all nodes.

This fails as not enough arguments are passed to the article repository
service from the container.
2020-03-25 12:31:28 +00:00
8adcf2d8f6 4e: Add the getAll() method
Add the `getAll()` method to the ArticleRepository, ensuring that it
returns an array.

This returns as 0 articles are returned, but 3 are expected in the
assertion.
2020-03-25 12:31:28 +00:00
54b306844f 4d: Add the ArticleRepository
Create the `ArticleRepository` class and add it as a service.

This fails as there is no `getAll()` method on the class.
2020-03-25 12:31:28 +00:00
23287fc0fd 3e: Add page text
Replace the empty render array with one that returns the expected text.
2020-03-25 12:31:28 +00:00
e8bfcb353b 3d: Add BlogPageController
Add the BlogPageController that is referenced within
`my_module.routing.yml`.

We will need to return a render array, but for now let’s return an empty
array.

The test now passes as we are getting the expected response code.
2020-03-25 12:31:28 +00:00