From fcb2be2e3cf4ddac7cfe1e0c983b63fbe9f04331 Mon Sep 17 00:00:00 2001 From: Carsten Rose <carsten.rose@math.uzh.ch> Date: Tue, 7 Mar 2017 22:01:36 +0100 Subject: [PATCH] BuildFormPlainTest.php: update test pattern --- extension/qfq/tests/phpunit/BuildFormPlainTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/qfq/tests/phpunit/BuildFormPlainTest.php b/extension/qfq/tests/phpunit/BuildFormPlainTest.php index f69568d46..2546d02f1 100644 --- a/extension/qfq/tests/phpunit/BuildFormPlainTest.php +++ b/extension/qfq/tests/phpunit/BuildFormPlainTest.php @@ -80,7 +80,7 @@ class BuildFormPlainTest extends AbstractDatabaseTest { $build = new \qfq\BuildFormPlain($form, array(), [$formElement]); - $label['123-l'][API_ELEMENT_CONTENT] = 'Name'; + $label['123-l'][API_ELEMENT_CONTENT] = '<label for="name:1" class="control-label" >Name</label>'; $result = $build->buildInput($formElement, 'name:1', '', $json); $this->assertEquals('<input id="123" name="name:1" class="form-control" type="input" maxlength="255" value="" data-hidden="no" data-disabled="no" data-required="no" ><div class="help-block with-errors hidden"></div>', $result); -- GitLab