From e367fdf9fe51df6a5d7d72146fc44a20c443c34c Mon Sep 17 00:00:00 2001 From: Tim Plunkett <git@plnktt.com> Date: Sun, 16 Sep 2012 15:09:25 -0400 Subject: [PATCH] Issue #1754238 by tim.plunkett: Fix random test failure and clean up setUp() code. --- lib/Drupal/views/Tests/Plugin/DisplayTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Drupal/views/Tests/Plugin/DisplayTest.php b/lib/Drupal/views/Tests/Plugin/DisplayTest.php index 813e65bb8df6..6b6fc7c0df6c 100644 --- a/lib/Drupal/views/Tests/Plugin/DisplayTest.php +++ b/lib/Drupal/views/Tests/Plugin/DisplayTest.php @@ -39,8 +39,7 @@ public function setUp() { $this->drupalLogin($this->adminUser); // Create 10 nodes. - $this->nodes = array(); - for ($i = 0; $i < 11; $i++) { + for ($i = 0; $i <= 10; $i++) { $this->drupalCreateNode(array('promote' => TRUE)); } } @@ -100,7 +99,7 @@ function testDisplayPlugin() { // Check the new value has been saved by checking the UI summary text. $this->drupalGet('admin/structure/views/view/frontpage/edit/display_test_1'); - $this->assertText($this->randomString); + $this->assertRaw($this->randomString); } /** -- GitLab