Closed (fixed)
Project:
SimpleTest
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
30 Nov 2007 at 21:12 UTC
Updated:
17 Dec 2007 at 20:32 UTC
Jump to comment: Most recent file
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 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 commentedok the updated patch, please use this one :)
Comment #3
CorniI commentedOK,
I talked with chx about them in IRC, and now, the new files, just strip the .txt :)
Corni
Comment #4
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 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 commentedactually, I forgot to upload the files :P here are the *tested* files :P
they should be fine ;)
Comment #8
Rok Žlender commentedCommitted thanks CorniI for your work.
Comment #9
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.