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:
parent
569d4a80dc
commit
fc8eb51bdf
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue