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.
This commit is contained in:
Oliver Davies 2020-03-19 21:11:54 +00:00
parent 54b306844f
commit 8adcf2d8f6

View file

@ -4,5 +4,9 @@ namespace Drupal\my_module\Repository;
class ArticleRepository {
public function getAll(): array {
return [];
}
}