Loading tests/src/FunctionalJavascript/WidgetJSTest.php +5 −5 Original line number Diff line number Diff line Loading @@ -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()); } Loading Loading
tests/src/FunctionalJavascript/WidgetJSTest.php +5 −5 Original line number Diff line number Diff line Loading @@ -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()); } Loading