From fc8eb51bdf8644cdc8191ee3ba3ef0bd4062dae3 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Sat, 21 Oct 2017 21:02:58 +0100
Subject: [PATCH] Create some test content

Create several different nodes in an incorrect order so that
we can see the test fail when asserting that they should be
ordered alphabetically.
---
 tests/src/Functional/PageListTest.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/src/Functional/PageListTest.php b/tests/src/Functional/PageListTest.php
index b998b02..2c45f64 100644
--- a/tests/src/Functional/PageListTest.php
+++ b/tests/src/Functional/PageListTest.php
@@ -60,7 +60,10 @@ class PageListTest extends BrowserTestBase {
    * Ensure that the results are ordered by title.
    */
   public function testResultsAreOrderedAlphabetically() {
-    // Given I have multiple nodes with different titles.
+    $this->drupalCreateNode(['title' => 'Page A']);
+    $this->drupalCreateNode(['title' => 'Page D']);
+    $this->drupalCreateNode(['title' => 'Page C']);
+    $this->drupalCreateNode(['title' => 'Page B']);
 
     // When I view the pages list.