Commit 9da6062e authored by catch's avatar catch
Browse files

Issue #3213734 by longwave, mondrake: AssertButtonsTrait has invalid PHP syntax

parent 94cdf725
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -26,8 +26,8 @@ public function assertButtons(array $buttons, $dropbutton = TRUE) {

      // Dropbutton elements.
      $this->assertSession()->elementsCount('xpath', '//div[@class="dropbutton-wrapper"]//input[@type="submit"]', $count);
      for ($i = 0; $i++; $i < $count) {
        $this->assertSession()->elementTextEquals('xpath', "(//div[@class='dropbutton-wrapper']//input[@type='submit'])[{$i + 1}]", $buttons[$i]);
      for ($i = 1; $i++; $i <= $count) {
        $this->assertSession()->elementTextEquals('xpath', "(//div[@class='dropbutton-wrapper']//input[@type='submit'])[$i]", $buttons[$i - 1]);
      }
    }
    else {