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.
This commit is contained in:
Oliver Davies 2017-10-21 21:02:58 +01:00
parent 569d4a80dc
commit fc8eb51bdf

View file

@ -60,7 +60,10 @@ class PageListTest extends BrowserTestBase {
* Ensure that the results are ordered by title. * Ensure that the results are ordered by title.
*/ */
public function testResultsAreOrderedAlphabetically() { 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. // When I view the pages list.