4h: Add page nodes to break the test

Also create a number of page (not article) nodes within the test to
ensure that these are excluded. Currently they are returned so too many
nodes are returned.

This is causing a failure as the expected count value is no longer being
returned.
This commit is contained in:
Oliver Davies 2020-03-19 21:26:28 +00:00
parent 55035b236b
commit e79a63476e

View file

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