4i: Add page nodes too

This commit is contained in:
Oliver Davies 2020-11-14 09:35:46 +00:00
parent 1be8440519
commit 910af32309

View file

@ -30,7 +30,9 @@ class ArticleRepositoryTest extends EntityKernelTestBase {
/** @test */ /** @test */
public function nodes_that_are_not_articles_are_not_returned() { public function nodes_that_are_not_articles_are_not_returned() {
$this->createNode(['type' => 'article'])->save(); $this->createNode(['type' => 'article'])->save();
$this->createNode(['type' => 'page'])->save();
$this->createNode(['type' => 'article'])->save(); $this->createNode(['type' => 'article'])->save();
$this->createNode(['type' => 'page'])->save();
$this->createNode(['type' => 'article'])->save(); $this->createNode(['type' => 'article'])->save();
$repository = $this->container->get(ArticleRepository::class); $repository = $this->container->get(ArticleRepository::class);