We need to test the ability for users to set default comment signatures.

Suggested assertions:
- Make sure user-set signature appears after comment is submitted.
- Make sure comments' signature changes after the user's signature is changed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch’s picture

Status: Active » Needs work
FileSize
3.79 KB

This is pretty ugly, postComment probably needs to go into DrupalWebTestCase for a start, and it needs finishing up. But still, pancakes!

catch’s picture

Status: Needs work » Needs review
FileSize
12.73 KB

Here goes. postComment is moved out of comment.test and becomes drupalPostComment in drupalWebTestCase() - otherwise unchanged.

Finished off the test, which passes. Kyle Matthews was my partner for the testing party, so should get credit on commit.

catch’s picture

FileSize
12.3 KB

slight tidy up.

catch’s picture

FileSize
12.45 KB
floretan’s picture

Patch looks good, just some formatting fixes.

I understand that unlike other drupalCreate*() methods, drupalPostComment() actually posts the information rather than creating an item programmatically. However, for consistency, shouldn't the method be named drupalCreateComment()?

Otherwise RTBC.

floretan’s picture

forgot patch

chrisshattuck’s picture

Status: Needs review » Needs work

Patch had 4 failures and several successes. Looks like it needs to be updated.

catch’s picture

Component: tests » base system
Category: bug » task
Priority: Critical » Normal

Fixing the critical / pending bugs queues to reflect things which are really bugs or release critical.