Commit graph

2504 commits

Author SHA1 Message Date
Colin Kuskie
dd82e87b16 remove old template from template tests 2006-06-27 04:31:35 +00:00
Colin Kuskie
17308e72aa fix problem with test reporting errors on programmatically generated content on body tags 2006-06-26 04:06:02 +00:00
Colin Kuskie
56ec67626d use Test::More::is_deeply instead of custom sub and implement check for simple inheritance in Asset classes 2006-06-15 22:33:36 +00:00
Colin Kuskie
4c39c6759b For lib/*.pm, template variable breakout.
Collaboration template labels need to be rethought
fix t/i18n/label.t to not always check on the name of a variable as an i18n entry,
since the description may hold the actual variable description.
2006-06-07 05:10:08 +00:00
Colin Kuskie
fa4fe985ae fix User.t so that it will tolerate 1 second variances in update times 2006-06-02 18:06:46 +00:00
Colin Kuskie
b4597e50e5 Implement multiple inheritance in Help, allowing variables, fields and related
topics to be inherited from multiple entries.  Operation/Help now also gives
the help hash a default ISA array, to make downstream processing by tests and
documentation compilers easier.
Convert existing Help entries that already used ISA to have an array ref
instead of a singular hash ref.  Also update the Help skeleton to show
the new syntax.
2006-05-31 04:16:40 +00:00
Colin Kuskie
c96cef545c fix a typo and logic error in the label test 2006-05-30 04:38:34 +00:00
Colin Kuskie
7100d1df41 Add a new method called getAllGroupsFor, which recursively returns ALL groups
that a group belongs to.  This is required to properly uncache group settings
for groups with more than 2 levels of hierarchy.

Add 7 tests to verify the working of the new method.

Fix a typo in the POD for Operation/Group.pm
2006-05-26 16:43:47 +00:00
Colin Kuskie
e1fee84dc5 fix getFileExtension so that it only returns file extensions. Add tests to Storage.t to validate that 2006-05-24 23:25:21 +00:00
Colin Kuskie
2798c84d31 add tests for create and getFileSize 2006-05-24 22:47:40 +00:00
Colin Kuskie
a54aec00a4 make the failing short guid test smarter so that it tries multiple directories 2006-05-24 21:18:27 +00:00
Colin Kuskie
b02386064d Make creating a Storage object with a short ID an error.
Add a test to check for that.
Beginning of documentation for VersionTag.
2006-05-24 03:03:47 +00:00
Colin Kuskie
e6ef875b51 make i18n check for labels in the template variables section of the help 2006-05-24 00:49:37 +00:00
Colin Kuskie
c26d9cc923 add checking for isa fields in Help 2006-05-23 18:17:12 +00:00
Wouter van Oijen
f09b385a30 Improved whitespace test, found 24 more files with pod problems 2006-05-21 13:37:37 +00:00
Wouter van Oijen
e35760ce6a Added a test for erroneous whitespace that screws up POD 2006-05-20 10:29:26 +00:00
Colin Kuskie
a880b058a5 update SelectList to go with XHTML changes by Wouter 2006-05-20 04:04:12 +00:00
Colin Kuskie
f413c029a2 Storage now prunes empty directories when delete is called.
Add use WebGUI::Form::Hidden to Form::File
2006-05-19 21:48:10 +00:00
Colin Kuskie
3d10acb8ce update User test now that group caches are flushed properly 2006-05-19 03:53:50 +00:00
Colin Kuskie
daa0accf45 fill in the remaining tests for users and groups 2006-05-18 03:21:30 +00:00
Colin Kuskie
aea9ce76f7 Bust group caches and caches of groups containting this group
whenever the group is edited, or when users or groups are added
or deleted.
Add a test to check adding users.
2006-05-17 23:16:11 +00:00
Colin Kuskie
ebdcd47f8d POD and code fix for Storage object delete method 2006-05-17 18:28:31 +00:00
Colin Kuskie
c6342a6225 baseline testing for Asset versioning code 2006-05-17 03:52:52 +00:00
Colin Kuskie
c014d39c28 expose a Storage bug 2006-05-16 22:45:46 +00:00
Colin Kuskie
f704f7dfa4 tests for buildHashRefOfHashRefs 2006-05-12 23:25:28 +00:00
Colin Kuskie
024ae31899 add tests for buildArrayOfHashRefs 2006-05-12 23:13:27 +00:00
Colin Kuskie
f1d99a0af1 Add AdSpace help.
Fix bad subroutine exit in label.t
Clone label.t to create setHelp.t, which checks that AdminConsole help topics resolve
Fix typo in AC help topic for InOutBoard
2006-05-12 04:12:01 +00:00
Colin Kuskie
b018b8e61e Document return value for Storage::rename
Add simple new test for Text.t
Add ClassName.t test
Prevent Form/ClassName from passing classes with spaces in them and
remove redundant test for digits in regexp.
Add a new test to Storage.t for getLastError
2006-05-11 17:37:42 +00:00
Colin Kuskie
548dfb6f41 beginning of Storage test 2006-05-10 23:12:48 +00:00
Colin Kuskie
b4441a0c93 Add Slider to list of non-profile enabled form elements 2006-05-09 16:45:26 +00:00
Colin Kuskie
e035bd28f8 fix label.t to search for multiple i18n objects inside of a sub 2006-05-08 23:31:54 +00:00
Colin Kuskie
379c6e0ad3 very simple test for URLEncode macro 2006-05-05 23:31:22 +00:00
Colin Kuskie
3587af1479 test for FetchMimeType macro 2006-05-05 23:26:22 +00:00
Colin Kuskie
45a5b58f67 International macro test 2006-05-05 22:24:56 +00:00
Colin Kuskie
a2dd0b5a48 adding tests for scratch overwrite bug 2006-04-24 23:53:59 +00:00
Colin Kuskie
c4d6c351ec add User form to list of non profile-enabled forms 2006-04-24 16:13:29 +00:00
Colin Kuskie
7f30feae35 removing more diag output 2006-04-21 16:41:53 +00:00
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