Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I wrote 2 tests as part of GHOP, could someone review&commit them? There are written for HEAD drupal and HEAD simpletest. The diff is attached. Tests are for story - Preview and story - Edit. Link to GHOP: http://code.google.com/p/google-highly-open-participation-drupal/issues/...
Corni
Comment | File | Size | Author |
---|---|---|---|
#7 | story_edit.test_.txt | 1.7 KB | CorniI |
#7 | story_preview.test_.txt | 1.14 KB | CorniI |
#3 | story_edit.test_.txt | 1.76 KB | CorniI |
#3 | story_preview.test_.txt | 1.17 KB | CorniI |
#2 | drupal2simpletests.patch | 3.63 KB | CorniI |
Comments
Comment #1
CorniI CreditAttribution: CorniI commentedok the test for story_edit is incomplete, i'm sorry, today or morning i'll update the patch with an extended test
edit: and with a review against you coding standards
Comment #2
CorniI CreditAttribution: CorniI commentedok the updated patch, please use this one :)
Comment #3
CorniI CreditAttribution: CorniI commentedOK,
I talked with chx about them in IRC, and now, the new files, just strip the .txt :)
Corni
Comment #4
Rok Žlender CreditAttribution: Rok Žlender commentedAwesome great job. I wouldn't change anything in story edit test. In story preview I would add an assertion if field forms are not empty. You can do that with either:
- assertFieldById($fieldId, $fieldValue, $msg) or
- assertFieldByName($fieldName, $fieldValue, $msg)
Comment #5
webchickComment #6
CorniI CreditAttribution: CorniI commentedok, the untested (i'm in school, having no XAMPP) Code, in both i removed the t()-Calls for the random text, it's totally unneeded :) I also replaced the assertWantedTexts in story_preview-test with assertFiledByName, but i'm able to test it in 3h, not earlier :(
Corni
Comment #7
CorniI CreditAttribution: CorniI commentedactually, I forgot to upload the files :P here are the *tested* files :P
they should be fine ;)
Comment #8
Rok Žlender CreditAttribution: Rok Žlender commentedCommitted thanks CorniI for your work.
Comment #9
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.