Project:SimpleTest
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:CorniI
Status:closed (fixed)
Issue tags:GHOP

Issue Summary

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

AttachmentSizeStatusTest resultOperations
newtests.patch2.99 KBIgnored: Check issue status.NoneNone

Comments

#1

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

#2

ok the updated patch, please use this one :)

AttachmentSizeStatusTest resultOperations
drupal2simpletests.patch3.63 KBIgnored: Check issue status.NoneNone

#3

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

AttachmentSizeStatusTest resultOperations
story_edit.test_.txt1.76 KBIgnored: Check issue status.NoneNone
story_preview.test_.txt1.17 KBIgnored: Check issue status.NoneNone

#4

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)

#5

Title:GHOP: simpletest 2 new Tests» GHOP #32: simpletest 2 new Tests
Status:needs review» needs work

#6

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

#7

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

AttachmentSizeStatusTest resultOperations
story_edit.test_.txt1.7 KBIgnored: Check issue status.NoneNone
story_preview.test_.txt1.14 KBIgnored: Check issue status.NoneNone

#8

Status:needs work» fixed

Committed thanks CorniI for your work.

#9

Status:fixed» closed (fixed)

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

nobody click here