There are occasional failures in IngredientFieldTest coming from line 138. That line is supposed to make certain that the ingredient quantity and unit are not shown when the quantity is 0. It does so by checking for the absence of the text "0 T" (zero tablespoons). It looks like the unit is being shown, which is incorrect in the first place. But what causes the test error is that the previous line is the standard node "Submitted by..." line. If its timestamp ends with a 0, then the test runner finds the text "0 T" on the page and flags a failure, even though they're on different lines.
The test needs to be hardened against these failures and it needs to be verified whether the unit is not being printed in the zero-quantity case.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3121944-2.patch | 1.38 KB | dcam |
Comments
Comment #2
dcam commentedComment #4
dcam commentedI didn't change the field formatter where the unit is displayed even though there is no quantity. That behavior has been in the module for a very long time, probably pre-D7. I don't want to change the behavior unless people complain. I just fixed the test.