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:
parent
54b306844f
commit
8adcf2d8f6
1 changed files with 4 additions and 0 deletions
|
@ -4,5 +4,9 @@ namespace Drupal\my_module\Repository;
|
||||||
|
|
||||||
class ArticleRepository {
|
class ArticleRepository {
|
||||||
|
|
||||||
|
public function getAll(): array {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue