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:
parent
55035b236b
commit
e79a63476e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue