Commit graph

510 commits

Author SHA1 Message Date
Colin Kuskie
cc7687c877 add test section headers, for documentation 2007-06-14 05:17:38 +00:00
Colin Kuskie
cde6e72d93 add tests for updateMetaDataField, which adds a value specific to the asset 2007-06-14 05:11:43 +00:00
Colin Kuskie
4875df88f7 testing deleteMetaDataField 2007-06-13 04:50:43 +00:00
Colin Kuskie
79fe687c7f add more tests to check out getMetaFields, all and one at a time 2007-06-13 04:37:28 +00:00
Colin Kuskie
213c161581 Add a comment to AssetMetaData.t
Add more tests to Session.t to check the $session->user method.
2007-06-12 03:41:41 +00:00
Colin Kuskie
2893409d05 add uiLevel tests for Visitor and Admin 2007-06-10 22:55:52 +00:00
Colin Kuskie
95506668ca add a test for the sessionId macro 2007-06-10 20:47:41 +00:00
Colin Kuskie
32f7866f3b Added a TODO in AssetPackage and changed a comment inside AssetLineage for clarity 2007-06-07 20:02:43 +00:00
Colin Kuskie
efea7c9685 fix a typo in the AssetMetaData, and add code to WebGUI::Test to force all output onto STDOUT. Step 1 to smolder 2007-06-06 23:40:14 +00:00
Colin Kuskie
804bad9a48 very beginnings of an Asset MetaData test, along with an API extension to make adding metaData possible 2007-06-05 23:33:50 +00:00
Colin Kuskie
6dd91ea8f4 fix a test that leaks a user and casues t/Macro/SQL.t to fail if they are called in the correct order 2007-05-30 21:43:25 +00:00
James Tolley
c09b2cae1b EMS import/export, Form::*::getValueFromPost(alt_values), and tests 2007-05-29 23:39:24 +00:00
Colin Kuskie
0a7e06edca Remove extra arguments to rollback. Not sure how those got added
in the first place.
Fix the WikiPage, which was not cleaning up after itself.
2007-05-29 22:52:52 +00:00
Colin Kuskie
907f31b97d update User test for new User Profile table scheme 2007-05-29 18:09:50 +00:00
Colin Kuskie
c4384bd8f8 remove dead test code 2007-05-24 22:59:16 +00:00
JT Smith
f5f358ccf3 fixed tests
preparing for release
2007-05-23 17:42:51 +00:00
Colin Kuskie
7f034ba090 basic test for toHex 2007-05-07 04:44:39 +00:00
Colin Kuskie
fbec25f5f7 rework tests to handle new asset behavior 2007-05-07 04:32:04 +00:00
Colin Kuskie
e48cce07fb 8 more tests for Storage.t for tar and untar.
Reindented untar according to WGBP.
Changed getFileContentsAsScalar to slurp the whole file at once.
2007-04-30 03:55:05 +00:00
Colin Kuskie
38060cc0cb add another privilege method for handling locked assets 2007-04-27 22:20:27 +00:00
Colin Kuskie
ec7eb49e61 more subroutine coverage tests for Storage.pm. Coverage is 44/34/82 2007-04-26 04:40:57 +00:00
Colin Kuskie
7fd2a13a7a cover more Storage subroutines 2007-04-25 21:13:10 +00:00
Colin Kuskie
a8c8568d36 addChild: handling really deep assets works 2007-04-17 05:34:26 +00:00
Colin Kuskie
0d9bd95030 document some TODO tests 2007-04-15 05:02:24 +00:00
Colin Kuskie
8d65d4322c getLineage tests. This thing is so big it could have its own test file. 2007-04-15 05:00:06 +00:00
Colin Kuskie
bd577a6712 Cache tests for getFirst- and getLastChild, hasChildren.
newByLineage tests, with cache
changed newByLineage to use placeholders
Coverage is 59/55/84
2007-04-15 04:30:55 +00:00
Colin Kuskie
450aab40a0 Some coverage tests for setRank. Added tests and a new folder
for getDescendantCount.
Pushed the reversal of order back into getLineage.  WGBP indentation.
2007-04-15 03:41:38 +00:00
Colin Kuskie
483daf6671 More rank swapping tests, cleaned up a bug in the tests that passed but should
not have.
Updated the POD in AssetLineage to show which methods alter the object's stored
lineage versus the information in the database.
2007-04-15 02:02:03 +00:00
Colin Kuskie
5e643336bb Add a test in setParent for the condition where the current user cannot edit
the new parent.
Added a basic test for setRank.
2007-04-14 02:45:50 +00:00
Colin Kuskie
a7cb2133c9 10 tests for rank swap, promote and demote
changed promote and demote to use placeholders in AssetLineage.
Added explicit return values to demote
2007-04-14 01:50:11 +00:00
Colin Kuskie
c9e2a8b9f3 11 more AssetLineage tests for various rank methods.
Have setParent update self's parentId for persistent code.
2007-04-14 00:50:35 +00:00
Colin Kuskie
e894ed29ae Tests for getParent and getParentLineage
Fixed getParentLineage.  The regular expression only matched strings
that were 8 characters long.
2007-04-13 21:45:32 +00:00
Colin Kuskie
a548341aea More AssetLineage tests.
setParent does not clear the internally cached reference to
the parent Asset.  This makes persistent code get the wrong
Asset reference.
2007-04-13 21:01:15 +00:00
Colin Kuskie
9e4216c4a0 Add more AssetLineage tests.
cascadeLineage will crash because it does not check for duplicate lineages.
Removed a duplicate check for $newParent definedness in setParent.
2007-04-13 20:19:23 +00:00
Colin Kuskie
15c245b06a AssetLineage tests, and place holders for AssetLineage 2007-04-13 17:27:51 +00:00
Colin Kuskie
025a66e30d Coverage is 100/98/63.
Missing coverage is checking for leaving off the epoch argument
and getting the default of time(), and some kind of Devel::Cover
issue where it says that time() could return 0.
2007-04-11 03:05:43 +00:00
Colin Kuskie
febc052d97 add extra collateral for DateTime tests 2007-04-11 02:50:14 +00:00
Colin Kuskie
b14c3983a9 more coverage tests, branch coverage is at 98% 2007-04-10 22:45:32 +00:00
Colin Kuskie
76bf1b2ad5 testing for DateTime methods for interval translation and date math. Reformatted some of Session/DateTime for WGBP 2007-04-10 04:51:48 +00:00
Colin Kuskie
d051a1960e cover the remaining few subroutines. 100% sub coverage for Session::DateTime 2007-04-09 23:47:47 +00:00
Colin Kuskie
4cc810faf3 Added tests for mailToEpoch.
Removed the default setting for mailToEpoch that would have assigned
the epoch to the mail field and automatically caused the method
to fail, returning undef.
2007-04-09 18:01:26 +00:00
Colin Kuskie
b76351fa83 expanding the DateTime test suite, missing three methods and lots of branch/condition coverage 2007-04-08 05:06:15 +00:00
Colin Kuskie
f113d0a729 increase Privilege coverage to 100% 2007-04-07 19:53:33 +00:00
Colin Kuskie
f9958fa4eb upgrade test to work with newer use_ok 2007-04-07 02:33:21 +00:00
Colin Kuskie
c6bde7eed9 By default, all Log::Log4Perl calls are mocked so that they can
be intercepted and tested.
Reworked Session/ErrorHandler.t to take account of this.
Updated Stow test coverage to 100%.
2007-04-06 22:50:53 +00:00
Colin Kuskie
97e7621b8a rewrite Http.t tests to return coverage to its original status before the Http.pm rewrite. The only way to increase it from here is to mock the Apache cookie module 2007-04-06 05:00:00 +00:00
Colin Kuskie
17efbe2186 begin fixing the Http tests 2007-04-03 04:21:04 +00:00
Doug Bell
991aac998a fix: t::WebGUI::PseudoRequest now works properly
add: Added some additional vars to Calendar Week view
fix: WebGUI::DateTime now handles MySQL strings more robustly
2007-03-20 17:27:30 +00:00
Colin Kuskie
c3b3706e19 repair Http test so that it passes. The entire test needs to be reworked as there are now tons of redundant tests 2007-03-10 04:49:48 +00:00
Colin Kuskie
f9aff0cb98 document test that needs to be written for 100% coverage of Style.pm 2007-03-09 22:19:24 +00:00