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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

CorniI’s picture

ok 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

CorniI’s picture

FileSize
3.63 KB

ok the updated patch, please use this one :)

CorniI’s picture

OK,
I talked with chx about them in IRC, and now, the new files, just strip the .txt :)
Corni

Rok Žlender’s picture

Awesome 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)

webchick’s picture

Title: GHOP: simpletest 2 new Tests » GHOP #32: simpletest 2 new Tests
Status: Needs review » Needs work
CorniI’s picture

ok, 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

CorniI’s picture

actually, I forgot to upload the files :P here are the *tested* files :P
they should be fine ;)

Rok Žlender’s picture

Status: Needs work » Fixed

Committed thanks CorniI for your work.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.