Commit graph

14 commits

Author SHA1 Message Date
Graham Knop
4c18ba3563 convert all test cleanup to addToCleanup 2010-06-10 18:47:54 -05:00
Colin Kuskie
5ea3f02520 Macro test maintenance. 2009-10-31 12:05:07 -07:00
Colin Kuskie
689e645e51 Forward porting tests with better cleanups. 2009-05-25 04:42:40 +00:00
Colin Kuskie
1a9da53abf Modify tests to use the automatic storage cleanup provided by WebGUI::Test.
Several tests previously leaked storage locations.
2009-04-14 01:54:28 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
Colin Kuskie
83310ba311 update copyright on tests 2007-07-07 03:56:44 +00:00
Colin Kuskie
332933337a re-re-fix FileUrl test with recommended method for building Assets 2006-12-09 04:48:03 +00:00
Colin Kuskie
6343f648e1 Fixed the failing FileUrl test and clearly document where the FileUrl macro
will work and where it will not.

This test failed due to an API change in WebGUI.  Before 7.3, if you created
a Storage object and then created an Asset with that Storage Id, then WebGUI
would do that happily.  This is actually a bug, because you could create multiple
Assets with that one Storage Id, and when _any_ of the Assets was deleted or
rolled back it would delete the Storage location and leave the other Assets
with that Id pointing to an empty Storage object.

So the API change is actually a bug fix, albeit being a side-effect of the
auto-commit work for posts and wikis.
2006-12-08 17:40:09 +00:00
Colin Kuskie
78c33c54ff Added corner tests for empty string and undef.
Converted tests to handle skipping if the macro can't be loaded.
2006-07-30 07:39:49 +00:00
Colin Kuskie
be6fc4b4f9 clean up old macroText statements 2006-07-29 03:50:34 +00:00
Colin Kuskie
6aab9a6eec Rework all tests to call the Macro's process subroutine directly.
Add RootTitle.t test.
Broke up the SettingMacros.t test into individual tests.
2006-07-26 19:02:22 +00:00
Colin Kuskie
f1159269a0 Macro Tests: refactored all macro tests to remove a very evil hack
for inserting macros into the config.  The new method is much cleaner
and uses the Config API.
Updated the docs for the RootTitle macro, both POD and online help.
2006-07-25 20:54:08 +00:00
Colin Kuskie
10135118d2 rename FileUrl test 2006-07-23 01:34:47 +00:00
Renamed from t/Macro/FileUrl.s (Browse further)