From dccc8f1875736f7b6409368f20626c925082da33 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 20 Apr 2018 00:10:28 +0100 Subject: [PATCH] Add node types explicitly --- tests/src/Kernel/PageListTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/Kernel/PageListTest.php b/tests/src/Kernel/PageListTest.php index d0fb281..6d8df53 100644 --- a/tests/src/Kernel/PageListTest.php +++ b/tests/src/Kernel/PageListTest.php @@ -43,13 +43,13 @@ class PageListTest extends EntityKernelTestBase { */ public function testOnlyPublishedPagesAreShown() { // This is a published page, so it should be visible. - $this->createNode(['status' => TRUE]); + $this->createNode(['type' => 'page', 'status' => TRUE]); // This is an article, so it should not be visible. $this->createNode(['type' => 'article']); // This page is not published, so it should not be visible. - $this->createNode(['status' => FALSE]); + $this->createNode(['type' => 'page', 'status' => FALSE]); // Rather than testing the rendered HTML, we are going to load the view // results programmatically and run assertions against the data it returns.