Quick brainstorm of functional tests:
1. Test that the Clock outputs the expected string (multiple configurations).
2. Test that the "User time zone" option does not appear if user-configurable time zones are disabled.
3. Test that custom date formats show up.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tstoeckler’s picture

Status: Active » Reviewed & tested by the community

Since I can't roll patches with new files, I am committing an intitial clock.test to CVS. I contains a bunch of stub tests, that have not yet been implemented.

tstoeckler’s picture

Title: Test coverage » Initial test coverage
Status: Reviewed & tested by the community » Fixed
tstoeckler’s picture

Title: Initial test coverage » Test coverage
Status: Fixed » Needs review
FileSize
2.19 KB

Well, I guess I'll reuse the issue.
Uploaded patch adds one working test. Now that I've got that working, the other ones should follow soon.

tstoeckler’s picture

FileSize
4.47 KB

Here we go.
With this patch test coverage should really be complete for so small a module.

tstoeckler’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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