Commit graph

430 commits

Author SHA1 Message Date
Colin Kuskie
cae65be309 more tests for AdSpace/Ad.pm 2007-02-06 04:41:12 +00:00
Colin Kuskie
d1ede96e63 Make AdSpace->get provide a hash ref if none is supplied.
Add tests to improve test coverage and to verify defaults from the
DB and the code.
2007-02-05 04:10:15 +00:00
Colin Kuskie
c9726f7b4d New AdSpace tests, need to start looking at coverage.
Added some comments and fixed some POD in AdSpace.pm and Ad.pm
2007-02-05 01:01:20 +00:00
Colin Kuskie
870d9dbe46 more tests for AdSpace and added more POD to AdSpace.pm and Ad.pm 2007-02-04 04:12:19 +00:00
Colin Kuskie
ef07faa506 fix failing test for looking up dynamic lables 2007-02-02 17:51:15 +00:00
Doug Bell
af66fa585c Updated AssetExportHtml and tests. Now to re-order the export. 2007-02-01 16:57:05 +00:00
Roy Johnson
19bf1f4e8a fix - export fails with strange urls. Factored url to path translation out into a seperate method. Added beginnings of a smoke test for AssetExportHtml.pm. 2007-01-30 15:34:43 +00:00
Colin Kuskie
016e16aab1 fix a bad test in the Clipboard and add the AssetPackage test 2007-01-26 05:02:04 +00:00
Colin Kuskie
dc8cbd5fb2 adding clipboard test, this will fail 2007-01-26 04:04:35 +00:00
Colin Kuskie
709939f5a1 try to make delta time tests more robust by moving the time variable assignment 2007-01-25 19:06:11 +00:00
Roy Johnson
83c2595c40 -7.3.6 stable release
-fixed the slash_gateway and pageurl macro tests so they didn't reak havoc on the rest of the test suite.
2007-01-24 17:32:57 +00:00
Colin Kuskie
66b59adde8 the Slash_gatewayUrl and PageUrl macros now accept optional URL arguments 2007-01-23 21:49:34 +00:00
Colin Kuskie
6c6aad240d add tests to DateTime to guarantee that add works 2007-01-19 16:22:24 +00:00
Colin Kuskie
3930e1415d update test to track core change in Form/Checkbox.pm 2007-01-19 16:14:30 +00:00
Colin Kuskie
2180b9bf91 Added a test to see if clone would duplicate the session. It does.
Subclassed DateTime's from_object method, which was secretely deleting
the internal session variable.  There is probably a more robust way to
do this, such as by "...implementing the utc_rd_values() method as the
from_object docs suggest.
Finished fixing the bug with time zone errors in editing an event.
2007-01-19 06:25:43 +00:00
Colin Kuskie
17fac4a7cb New methods in WebGUI::DateTime that clearly state how they handle timezones.
The standard is everything going into the DB is in UTC.  Timezones have to be
manually handled after being fetched.
Added a test for the new methods and for object construction.
Changed Calendar and Event Assets to use the new methods.
Interim checkin to get some debug help from Doug.
2007-01-19 05:16:57 +00:00
Roy Johnson
2684f7476c some new tests for the wiki 2007-01-17 13:21:05 +00:00
Colin Kuskie
7175a95f16 adding new paginator test for getPage 2007-01-15 06:05:38 +00:00
Colin Kuskie
e6d6aee9f0 XHTML fixes for Help 2007-01-10 05:24:23 +00:00
Colin Kuskie
d980882d1c more Paginator tests 2007-01-10 05:07:24 +00:00
Colin Kuskie
797f5f9363 Add a test to Utility.t to make sure that WebGUI::Utility::round also rounds up.
Add Paginator tests for paginating array data.
Fix an off by 1 error in the Paginator when handling array data.  SQL data is fine.
2007-01-10 03:03:31 +00:00
Colin Kuskie
c95fefec81 adding test for headBlock processing in style templates. They should only show up once. 2007-01-07 22:42:13 +00:00
Colin Kuskie
393b6a1091 adding test for nesting macros 2007-01-04 19:11:17 +00:00
Roy Johnson
1a95b94598 Fixed failing calendar test
7.3.3 beta release
2007-01-04 00:50:41 +00:00
Colin Kuskie
5a26e4f2d8 Assets need to be committed before adding children to them. This should really be done in addChild to prevent it since it was manually hacked into the CS. 2006-12-22 18:10:27 +00:00
Roy Johnson
e92871629c Added a the beginnings of a test suite for the wiki. Fixed privilege check in the media folder. 2006-12-21 16:19:37 +00:00
Colin Kuskie
9d0894b674 Add a new method to t/lib/WebGUI/Test.pm to return the path to the test
collateral.
Update all tests to use the new method.
Change testCodebase.pl to run long tests by default.  To disable the
long tests, use the --noLongTests switch.
2006-12-15 23:17:22 +00:00
Roy Johnson
b5aea5a60b fixed some broken tests 2006-12-13 14:20:06 +00:00
Drake
cd3f31924a A few extra workflow tests. 2006-12-13 05:11:50 +00:00
Colin Kuskie
bdb88b6c6d fix lookup of English language tags when translation fails 2006-12-13 04:47:41 +00:00
Roy Johnson
39a992e0a7 Added the beginnings of a test suite for the Calendar wobject 2006-12-10 23:22:04 +00:00
Colin Kuskie
ae112ee843 mandatory_template_vars: EventsCalendar template does not exist anymore 2006-12-10 05:59:11 +00:00
Colin Kuskie
f601092435 mark Workflow tests that test things that do not exist as TODO 2006-12-09 16:03:58 +00:00
Colin Kuskie
2c246c06cc fix a bug where updating the storageId in File Type assets did not update the cached storageLocation. Also fixed the Thumbnail Macro test 2006-12-09 06:05:26 +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
Roy Johnson
1cae999b60 Two new tests for the snipper 2006-12-07 01:07:01 +00:00
Drake
c909ac9740 Some extra tests for workflow. 2006-12-06 22:03:32 +00:00
Roy Johnson
e058215bf7 Merging Search test into head 2006-11-30 01:05:21 +00:00
Doug Bell
4ed1f2f30e Added an idea for t/lib/WebGUI/Form_Checking.pm to make testing form values less magic and more flexible. still todo. 2006-11-29 06:36:27 +00:00
Colin Kuskie
957642e1c6 added explicit test for comma processing 2006-11-29 05:08:14 +00:00
Colin Kuskie
850abf9b6d setup code for showDebug test 2006-11-28 16:58:21 +00:00
Colin Kuskie
85eb6ddbeb Added setNamespace and getNamespace methods to WebGUI::International.
Added a baseline test for WebGUI::International which also tests the new methods.
Fixed codespace caching in WebGUI::Operation::Help.  Codespace caching is
done via symbol table lookups, and it saves doing an eval.
Implemented the same type of caching in WebGUI::International.  This replaced
the in-memory cache which would slowly accumulate a complete copy of the
i18n entries as they were fetched.
2006-11-26 04:07:32 +00:00
Colin Kuskie
ee9cae98a8 Documented the heretofore undocumented Deactivate Account Template in the Auth modules.
Broke out code scanning tests into their own tests, and required the CODE_COP environment
variable be set before they were run.
Fixed two bugs in the Workflow test, wrong number of tests and inverse test logic.
More Auth template inheritance work.  Almost time to reflect it over to
the LDAP module.
2006-11-24 21:05:44 +00:00
Roy Johnson
22b9bc5e3b added two new tests to Storage.t 2006-11-23 08:17:53 +00:00
Colin Kuskie
2843dd195b update ErrorHandler test to work from either . or sbin 2006-11-22 21:59:07 +00:00
Drake
567219c767 Add the beginnings of a test suite for workflows. 2006-11-22 16:09:12 +00:00
Colin Kuskie
a0d2326f9c Found and fixed a bug in ErrorHandler, canShowPerformanceIndicators.
It didn't work with CIDR format IP addresses.  I cannabilized the
code from canShowDebug and refactored it into its own method,
canShowBasedOnIP.  Both canShowDebug and canShowPerformanceIndicators call this.
Updated the docs for the debugIp setting to note that it's used for both
showDebug and showPerformanceIndicators.
Added about 20 more tests to ErrorHandler.t.  Only the two hard methods are
left, fatal (which closes the session at the end) and showDebug, which is
validating a ton of output.
2006-11-21 03:50:15 +00:00
Colin Kuskie
fdffd2a5e3 more diagnostics for remotely failing test 2006-11-20 17:17:47 +00:00
Colin Kuskie
9c6f2c8b09 tests for audit, security which wrap info and warn 2006-11-20 05:28:53 +00:00