Problem/Motivation
The current tests have some strange formatting, e.g.
$this->assertEqual($admin_status_plugin_definition['name'],
'Default Message',
'The default message admin_status plugin definition\'s' .
'name property is set.');
where strings are concatenated.
Proposed resolution
Look at core code and use that formatting.
Remaining tasks
Review core codeCreate patchReviewCommit
User interface changes
n/a
API changes
n/a
Data model changes
n/a
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | admin_status-clean_up_tests-2751625-10.patch | 2.75 KB | kristen pol |
| #3 | admin_status-clean_up_tests-2751625-3.patch | 2.85 KB | kristen pol |
Comments
Comment #2
kristen polI've reviewed a bunch of core tests and it's common for the asserts to be in one line even if they are long like:
or
though sometimes they span lines like:
or
but in that case, each argument is on a separate line.
Comment #3
kristen polHere's the patch.
Comment #4
kristen polComment #5
kristen polComment #6
kristen polComment #7
kristindev commentedFormatting cleaned up, looks good. RTBC
Comment #8
kristindev commentedComment #9
kristen polThanks!
Comment #10
kristen polI had to re-roll the patch due to some other patches that were committed.
Comment #12
kristen polComment #13
kristen pol