mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-07-01 08:59:42 +02:00
Fix whitespace issues in NumericField/NumericFieldTest
This commit is contained in:
parent
646a57c324
commit
76b833dfbb
|
@ -56,15 +56,14 @@ class NumericField extends TextField {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class NumericField_Readonly extends ReadonlyField{
|
class NumericField_Readonly extends ReadonlyField {
|
||||||
|
|
||||||
public function performReadonlyTransformation() {
|
public function performReadonlyTransformation() {
|
||||||
return clone $this;
|
return clone $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Value() {
|
public function Value() {
|
||||||
return Convert::raw2xml($this->value ?
|
return Convert::raw2xml($this->value ? "$this->value" : "0");
|
||||||
"$this->value" : "0");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -37,4 +37,5 @@ class NumericFieldTest extends SapphireTest {
|
||||||
$field->setValue(0);
|
$field->setValue(0);
|
||||||
$this->assertRegExp("#<span[^>]+>\s*0\s*<\/span>#", "".$field->performReadonlyTransformation()->Field()."");
|
$this->assertRegExp("#<span[^>]+>\s*0\s*<\/span>#", "".$field->performReadonlyTransformation()->Field()."");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user