Commit b7a8bd4f authored by Markus Kalkbrenner's avatar Markus Kalkbrenner Committed by Markus Kalkbrenner
Browse files

Issue #3268567 by mkalkbrenner: WidgetJSTest fails

parent 16a4e249
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -426,7 +426,7 @@ class WidgetJSTest extends JsBase {
      $option = $options[$key];
      // There can be multiple spaces or newlines between the value text and the
      // number of results. Reduce them to a single space before asserting.
      $this->assertEquals($text, preg_replace('/\s+/', ' ', $option->getText()));
      $this->assertEquals($text, trim(preg_replace('/\s+/', ' ', $option->getText())));
      $this->assertEquals($value, $option->getValue());
      $this->assertEquals($selected, $option->isSelected());
    }