Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
54c28347
Commit
54c28347
authored
Jun 03, 2014
by
alexpott
Browse files
Issue
#2279339
by chx: Fixed NumberFieldTest is slightly and subtly broken .
parent
625463d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/field/src/Tests/Number/NumberFieldTest.php
View file @
54c28347
...
...
@@ -107,7 +107,7 @@ function testNumberDecimalField() {
preg_match
(
'|entity_test/manage/(\d+)|'
,
$this
->
url
,
$match
);
$id
=
$match
[
1
];
$this
->
assertText
(
t
(
'entity_test @id has been created.'
,
array
(
'@id'
=>
$id
)),
'Entity was created'
);
$this
->
assertRaw
(
round
(
$value
,
2
),
'Value is displayed.'
);
$this
->
assertRaw
(
$value
,
'Value is displayed.'
);
// Try to create entries with more than one decimal separator; assert fail.
$wrong_entries
=
array
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment