GHOP #32: simpletest 2 new Tests

CorniI - November 30, 2007 - 21:12
Project:SimpleTest
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:CorniI
Status:closed
Issue tags:GHOP
Description

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

AttachmentSize
newtests.patch2.99 KB

#1

CorniI - December 1, 2007 - 13:40

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

CorniI - December 1, 2007 - 20:59

ok the updated patch, please use this one :)

AttachmentSize
drupal2simpletests.patch 3.63 KB

#3

CorniI - December 2, 2007 - 11:40

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

AttachmentSize
story_edit.test_.txt 1.76 KB
story_preview.test_.txt 1.17 KB

#4

Rok Žlender - December 2, 2007 - 22:31

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

webchick - December 3, 2007 - 08:31
Title:GHOP: simpletest 2 new Tests» GHOP #32: simpletest 2 new Tests
Status:needs review» needs work

#6

CorniI - December 3, 2007 - 13:18

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

CorniI - December 3, 2007 - 15:47

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

AttachmentSize
story_edit.test_.txt 1.7 KB
story_preview.test_.txt 1.14 KB

#8

Rok Žlender - December 3, 2007 - 20:32
Status:needs work» fixed

Committed thanks CorniI for your work.

#9

Anonymous - December 17, 2007 - 20:32
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.