Commit dabd2b82 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fix unit test.

parent e92a6f2e
Pipeline #2975 failed with stages
in 3 minutes and 13 seconds
......@@ -46,7 +46,7 @@ class CheckboxTest extends TestCase {
$html = $checkbox->build($formElement, $formElementName, '', $rcJson, FORM_LOAD);
$expected = '<label class="checkbox-inline" style="min-width: 80px; font-weight: 400;" id="1-2-3-4-i-0-l"><input data-hidden="no" data-disabled="no" data-required="no" type="checkbox" id="1-2-3-4-i-0" name="1-2-3-4[]" data-reference="-0" value="a" >a</label><label class="checkbox-inline" style="min-width: 80px; font-weight: 400;" id="1-2-3-4-i-1-l"><input data-hidden="no" data-disabled="no" data-required="no" type="checkbox" id="1-2-3-4-i-1" name="1-2-3-4[]" data-reference="-1" value="b" >b</label><label class="checkbox-inline" style="min-width: 80px; font-weight: 400;" id="1-2-3-4-i-2-l"><input data-hidden="no" data-disabled="no" data-required="no" type="checkbox" id="1-2-3-4-i-2" name="1-2-3-4[]" data-reference="-2" value="c" >c</label><div class="help-block with-errors hidden"></div>';
$expected = '<label class="checkbox-inline" style="min-width: 80px;" id="1-2-3-4-i-0-l"><input data-hidden="no" data-disabled="no" data-required="no" type="checkbox" id="1-2-3-4-i-0" name="1-2-3-4[]" data-reference="-0" value="a" >a</label><label class="checkbox-inline" style="min-width: 80px;" id="1-2-3-4-i-1-l"><input data-hidden="no" data-disabled="no" data-required="no" type="checkbox" id="1-2-3-4-i-1" name="1-2-3-4[]" data-reference="-1" value="b" >b</label><label class="checkbox-inline" style="min-width: 80px;" id="1-2-3-4-i-2-l"><input data-hidden="no" data-disabled="no" data-required="no" type="checkbox" id="1-2-3-4-i-2" name="1-2-3-4[]" data-reference="-2" value="c" >c</label><div class="help-block with-errors hidden"></div>';
$this->assertEquals($expected, $html);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment