[TASK] Test LineName::getArrayRepresentation()#1582
Conversation
JakeQZ
left a comment
There was a problem hiding this comment.
I've never used line names (aka named grid lines).
It seems that they are user-defined identifiers (i.e. strings), and that the LineName constructor should actually only allow strings in the $components parameter, not Values (for another PR).
In the meantime, we should be consistent with what the class is representing: a non-empty list of user-defined string identifiers, which are whitespace-separated in the rendered CSS.
560fb8c to
d97e895
Compare
I've added this to the Class PHPDoc in #1588.
I've entered #1589 for this. |
d97e895 to
f46a701
Compare
JakeQZ
left a comment
There was a problem hiding this comment.
There's a grammar mistake in a method name - otherwise looks good.
9020eb7 to
589d9ea
Compare
The tests are basically the same as those for the parent class `ValueList`. The main difference is that the default separator now is a space, not a comma. Part of #1440.
Co-authored-by: JakeQZ <jake.github@qzdesign.co.uk>
9659637 to
2b61dd9
Compare
The tests are basically the same as those for the parent class
ValueList. The main difference is that the default separator now is a space, not a comma.Part of #1440.