Commit graph

3267 commits

Author SHA1 Message Date
Colin Kuskie
499981d092 removing diag to clean up smoke test output 2006-04-20 18:43:20 +00:00
Colin Kuskie
3803e3b2ff update test to work with new code 2006-04-20 16:38:36 +00:00
Colin Kuskie
04911c04e9 removing diag output 2006-04-19 16:07:46 +00:00
Colin Kuskie
e3209b234e remove diag output 2006-04-19 15:42:12 +00:00
Colin Kuskie
7d94874bcc removing diag output from tests
Fix SQLForm help label so automatically generated Asset list works
EMS Help and i18n
2006-04-19 04:54:44 +00:00
Colin Kuskie
d0e7c5bb06 fix failing noCache test because separator changed 2006-04-17 03:06:20 +00:00
Colin Kuskie
cb2a8d025e I am 4 kinds of fool 2006-04-15 16:51:23 +00:00
Colin Kuskie
bbd17516e8 add cache clearing to end of User and Group tests, too 2006-04-15 02:36:52 +00:00
Colin Kuskie
1c6fec6695 Flush cache for User and Group tests to pass.
Add group cache clear to Group.pm
templateId clash due fixed
2006-04-15 02:32:38 +00:00
Colin Kuskie
2f5dab37d2 finalized Group code with migration and upgrade log 2006-04-14 01:17:39 +00:00
Colin Kuskie
b0356f06a0 update test to use new method name 2006-04-13 22:52:16 +00:00
Colin Kuskie
ad694fb030 Fix User.t so that it assigns IPs in a way that works with the new isInGroup code.
User.pm: Collapse all methods into getUsers(1) inside isInGroup
Group.pm: Disable the cache whenever a scratchFilter or ipFilter is assigned.
Begin updating Group documentation for changes to dbQuery
2006-04-12 23:33:11 +00:00
Colin Kuskie
8b8b4af41b Checkpoint before final conversion.
Added getIpUsers method to Group.pm
Group->getUsers and User->isInGroup both use getIpUsers
Tests added to Group.t to verify that getIpUsers works.
2006-04-11 21:17:30 +00:00
Colin Kuskie
6dba08b727 remove wrap tests due to XHTML change 2006-04-10 15:27:26 +00:00
Colin Kuskie
e5e9cd9b51 add tests for scratch users and migrate getUsers,isInGroup to use it 2006-04-07 20:42:36 +00:00
Colin Kuskie
f3404c319a beginnings of Session testbench 2006-04-06 23:19:59 +00:00
Colin Kuskie
f9b8582426 Scratch filter tests in prep for WebGUI::Group->getScratchUsers
Small tweaks for User.pm scratch and Group.pm POD
Update scratchFilter docs to show how to place multiple name and value pairs
2006-04-06 22:02:54 +00:00
Colin Kuskie
3e179fa4ad Group.t: group karma tests, better clean-up at end
User.t: better clean-up at end
Scratch.t: no newlines in test output
Session/Scratch.pm: convert to use placeholders
Ad.pm: Add missing line of POD.
Group.pm: add method to get all users in a group by karma.
User.pm: isInGroup to use getKarmaUsers.
2006-04-06 16:52:34 +00:00
Colin Kuskie
510c1f5ca5 Modify User.pm and Group.pm to consider external means of defining users,
such as a dbQuery.  This would happened coincidently before, but required
doing a User->isInGroup and only added members who were searched for rather
than all members.
Modify Group.t to test this.
Update POD in SQL.pm.
2006-04-05 18:35:26 +00:00
Colin Kuskie
54573e6bb2 Add tests to Stow to show that the ->set method is only really
useful when creating the Stow'ed variable.
When you ->get a Stow variable, you get a reference if you've
stowed an array or hash.  So when you modify what you got, it
changes the original inside Stow and you don't need to do a ->set.

This wouldn't work for scalars, unless it was a scalar reference.

This also means that if you modify the variable you stowed (and you
stowed a reference) after you stowed it then the stow will change
as well.
2006-04-04 17:42:25 +00:00
Colin Kuskie
8bbae90c4e remove debugging tests 2006-04-03 23:19:21 +00:00
Colin Kuskie
7b60bc8fef test that while a user can be in a group they may not be in the list of users 2006-04-03 19:13:09 +00:00
Colin Kuskie
2f65790a74 Annotate recursive versus non-recursive test
Clean-up the crowd and the mab
2006-04-03 18:17:38 +00:00
Colin Kuskie
c802e4ddad Add tests for database defined groups to Group.t
Clear cache on set of databaseLinkId or dbQuery in WebGUI::Group.pm.
Fix typos, missing module use lines and extra variables in WebGUI::User.pm.
2006-04-03 18:07:09 +00:00
Colin Kuskie
03c79ce1d0 comment out debugging output 2006-04-03 16:00:33 +00:00
Colin Kuskie
910e191fb4 Add note to DatabaseLink->new that id 0 is reserved for WebGUI database.
Build SQL table to be used in Group membership test
2006-04-03 05:36:27 +00:00
Colin Kuskie
c2fdde2635 Fix POD doc for getUsers.
Add baseline tests for changing sql method of group membership.
2006-04-03 05:14:03 +00:00
Colin Kuskie
d992111ac1 test for the profileEnabled flag in all forms reported by FieldType. Also place in 1 location the list of Forms which are NOT allowed to be profileEnabled 2006-04-02 23:31:05 +00:00
Colin Kuskie
dc2ec6bbdd Remove disabled check from all tests because it gives inconsistent
results.  Some forms were returning undef, some were returning 0.

Added a Radio button test.
Added a test to Checkbox that sees if the value (which is displayed to the
user) can be only whitespace.
2006-04-02 19:25:01 +00:00
Colin Kuskie
29635395cf Add Checkbox form test
Completely rework output postprocessing to make it more flexible
and added a test for duplicate test keys.
2006-03-31 23:04:14 +00:00
Colin Kuskie
833e5238eb fix typos in testBlock keys 2006-03-31 18:36:54 +00:00
Colin Kuskie
84342ea69c tests for single select list type forms 2006-03-31 18:27:29 +00:00
Colin Kuskie
6a035e44b0 Remove debugging output from Password test
SelectList test is finalized.
Extect auto_check to handle array and scalar accesses to the Form data post processors
2006-03-30 23:34:08 +00:00
Colin Kuskie
50452e71df refinements 2006-03-29 23:57:47 +00:00
Colin Kuskie
9b7d160a7a first cut at Form test with multiple selects 2006-03-29 01:09:52 +00:00
Colin Kuskie
1ad61ac861 Fix a bug in TimeField.
Add support for Brazilian phone numbers and extensions to Phone
2006-03-27 23:22:35 +00:00
Colin Kuskie
c772fa0d3a add Hidden test 2006-03-27 23:17:29 +00:00
Colin Kuskie
c64ebee60f Add Phone test, it needs more test cases
modify Phone.pm and Float.pm to require digits.
update Float.t to test for at least a digit to pass.
2006-03-27 22:08:27 +00:00
Colin Kuskie
556ab65f5e second batch of test automation done 2006-03-27 21:18:58 +00:00
Colin Kuskie
c8c7b78ee1 add Password test, fix bug in Password with maxlength 2006-03-27 20:42:08 +00:00
Colin Kuskie
16a6c2cc00 Form auto checker 2006-03-27 20:30:55 +00:00
Colin Kuskie
29ee2c313d first batch of test automation for getValueFromPost checking 2006-03-27 19:41:18 +00:00
Colin Kuskie
1ac514982f modify validation regexp for Float.
Add Float test
Add new Integer test
2006-03-27 00:29:03 +00:00
Colin Kuskie
efb6e82140 Added Integer test.
Change integer validation to reject strings like 123-456
2006-03-26 23:09:19 +00:00
Colin Kuskie
9ddea59a79 zipcode test 2006-03-25 19:54:22 +00:00
JT Smith
de20e89c98 fixed errors reported by smoke tests 2006-03-25 19:50:46 +00:00
Colin Kuskie
689eb47e10 adding Url test 2006-03-25 17:58:09 +00:00
Colin Kuskie
d4880b300e Add tests for Password and Email.
Updated comments appropriately.
2006-03-25 17:41:39 +00:00
Colin Kuskie
178a8cbd0f textarea test 2006-03-25 06:17:17 +00:00
Colin Kuskie
289f88a0eb post processing tests, remove HTMLForm as a requirement 2006-03-25 06:12:41 +00:00