mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix GroupedDropdownFieldTest::testReadonlyValue
This commit is contained in:
parent
a166ba0ebd
commit
e31565cb71
@ -153,14 +153,14 @@ class GroupedDropdownFieldTest extends SapphireTest
|
|||||||
// value on first level
|
// value on first level
|
||||||
$field->setValue("1");
|
$field->setValue("1");
|
||||||
$this->assertRegExp(
|
$this->assertRegExp(
|
||||||
'/<span class="readonly" id="Test">One<\/span><input type="hidden" name="Test" value="1" \/>/',
|
'#<span class="readonly" id="Test">One</span>\n?<input type="hidden" name="Test" value="1" />#',
|
||||||
(string)$field->performReadonlyTransformation()->Field()
|
(string)$field->performReadonlyTransformation()->Field()
|
||||||
);
|
);
|
||||||
|
|
||||||
// value on first level
|
// value on first level
|
||||||
$field->setValue("2");
|
$field->setValue("2");
|
||||||
$this->assertRegExp(
|
$this->assertRegExp(
|
||||||
'/<span class="readonly" id="Test">Two<\/span><input type="hidden" name="Test" value="2" \/>/',
|
'#<span class="readonly" id="Test">Two</span>\n?<input type="hidden" name="Test" value="2" />#',
|
||||||
(string)$field->performReadonlyTransformation()->Field()
|
(string)$field->performReadonlyTransformation()->Field()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user