Review: User Module Test

boombatower - April 10, 2008 - 02:06
Project:SimpleTest
Version:7.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:boombatower
Status:closed
Description

The user module tests didn't pass before this review for several reasons. After review the tests now passes all except for default timezone check.

<?php
$this
->assertEqual($user->timezone, variable_get('date_default_timezone', NULL), t('Correct timezone field.'));
?>

After a look at the code this appears to be a bug.

Other than that this test has been cleaned up quiet a bit. I removed the access rules test since that is no longer in core.

As a note UserValidationTestCase is full of unit tests. Once unit testing is implemented they should be moved.

AttachmentSize
simpletest_review_user.patch17.76 KB

#1

catch - April 10, 2008 - 09:16

Was going to open an issue for access rules and you've beaten me to it!

#2

boombatower - April 12, 2008 - 19:01
Status:patch (code needs review)» fixed

Committed.

#3

Anonymous (not verified) - April 26, 2008 - 19:11
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.