Commit graph

13073 commits

Author SHA1 Message Date
Colin Kuskie
a874b0201e Add a test to make sure every property has a table defined in it. If you need an attribute without a table, use has. 2010-03-19 14:48:55 -07:00
Colin Kuskie
e2033afbac Fix a typo in Subscribable Role. 2010-03-19 14:42:16 -07:00
Colin Kuskie
b04651ecc8 No comments table in the WikiMaster. 2010-03-19 14:33:51 -07:00
Colin Kuskie
88ec09d279 rework how validParent works, and where it is checked. Add an explicit check for it in addChild, and remove a bunch of overridden addChild methods. 2010-03-19 14:31:49 -07:00
Colin Kuskie
a8496c4d15 Convert Comments role to use Types. Build a test for it. 2010-03-18 15:06:17 -07:00
Colin Kuskie
1363a8627a Serialize _to_ json in write. 2010-03-18 15:05:19 -07:00
Colin Kuskie
d3f139d43c Test WebGUI::Types 2010-03-18 14:46:32 -07:00
Colin Kuskie
b41338cef5 Pull types into its own file. 2010-03-18 14:46:13 -07:00
Colin Kuskie
a92a50046e Add a file to hold WebGUI types for Moose. Note, reads from the db come back as undef, so it has to be explicitly coerced. 2010-03-18 14:44:52 -07:00
Colin Kuskie
bc466ab74f Add a validParent check to Post. 2010-03-18 12:40:47 -07:00
Colin Kuskie
a3f58bd841 Remove override of addChild in Post, since the same check is done via www_add/canAdd/validParent. 2010-03-18 12:38:31 -07:00
Colin Kuskie
b0cad3b155 Remove get and update overrides in Asset::Role::Comments 2010-03-18 09:10:45 -07:00
Colin Kuskie
e076ecbfe2 Add tests for traits and coercion for JSON in the db. 2010-03-18 09:00:21 -07:00
Colin Kuskie
ae315972ea Forgot the custom test subclass. 2010-03-14 09:04:05 -07:00
Colin Kuskie
3a2f94f1b3 Test for some Sku's. 2010-03-13 20:27:20 -08:00
Colin Kuskie
d4eae41ba8 Add a test for Photo 2010-03-13 20:23:12 -08:00
Colin Kuskie
41fffbaf37 Remove FindBin from test class sub-modules. 2010-03-13 20:06:15 -08:00
Colin Kuskie
790ccbe046 Fix script to work and load the utility test module. 2010-03-13 20:05:57 -08:00
Colin Kuskie
20507ee883 Calculate class to load. Remove class method from each test file. Fix typos. 2010-03-13 19:17:13 -08:00
Colin Kuskie
f7589e6237 Refactoring to remove putting className into each test class. WIP. 2010-03-12 10:30:29 -08:00
Colin Kuskie
85121c586c Move Test::Asset* to Test::WebGUI::Asset* 2010-03-12 09:00:20 -08:00
Colin Kuskie
2997471b5f fix assetName calls for Asset and Wobject. 2010-03-12 08:55:07 -08:00
Colin Kuskie
8209de7978 Add tests for most other wobjects. Block broken code in Role/Asset/Comments. Refactor run_asset.t 2010-03-12 08:41:04 -08:00
Colin Kuskie
e0e71a5925 Add Navigation, Poll, ProjectManager to run script. 2010-03-12 08:16:42 -08:00
Colin Kuskie
3ea797b2d4 Wobject tests, through letter M. 2010-03-12 08:06:49 -08:00
Colin Kuskie
953df3563f Remove duplicate accessor method. 2010-03-12 08:06:26 -08:00
Colin Kuskie
570eea7d91 Add test for passing through traits. 2010-03-11 13:42:38 -08:00
Colin Kuskie
f4467cb10f Attempt #1 to pass traits through property. 2010-03-11 13:42:38 -08:00
Graham Knop
b24978ef81 removing old upgrades 2010-03-11 09:45:12 -06:00
Graham Knop
45ca61b7c2 more import cleanups 2010-03-10 12:59:52 -06:00
Graham Knop
2af4c4de63 clean up WebGUI::Utility imports 2010-03-10 12:59:51 -06:00
Graham Knop
a22162b895 clean up Tie::CPHash imports 2010-03-10 12:59:51 -06:00
Graham Knop
913fa9ad03 clean up Tie::IxHash imports 2010-03-10 12:59:51 -06:00
Colin Kuskie
fe5085f346 Tests for Gallery and HttpProxy 2010-03-09 15:57:43 -08:00
Colin Kuskie
4fa1e0084c Add Wobject tests. 2010-03-09 15:29:45 -08:00
Colin Kuskie
ffe4e7fd37 fix uiLevel tests, and loading multiple sessions. 2010-03-09 14:57:58 -08:00
Colin Kuskie
4beab182a5 Fix uiLevel in Folder. 2010-03-09 14:18:09 -08:00
Colin Kuskie
db6090559b Add a test for GalleryFile 2010-03-09 13:59:31 -08:00
Colin Kuskie
b60149d01b Tests for Image, ZipArchive 2010-03-09 13:52:07 -08:00
Colin Kuskie
ffb7945c34 Remove leftover definition sub stubs. 2010-03-09 13:51:07 -08:00
Colin Kuskie
bc71165a16 Add T::C tests for Redirect, RichEdit,Shortcut,Sku, Template and Wobject. 2010-03-09 13:43:58 -08:00
Colin Kuskie
87c00d41c1 appending to an attribute must quote the + 2010-03-09 13:43:22 -08:00
Colin Kuskie
3b0e89341d Add T::C tests for File and Snippet. 2010-03-09 13:07:51 -08:00
Colin Kuskie
a3aeae9a4e Continue change from define uiLevel to has uiLevel. 2010-03-09 13:07:14 -08:00
Colin Kuskie
a3614f5211 Move uiLevel from a define to a property so it can be inherited. 2010-03-09 12:58:55 -08:00
Colin Kuskie
029655d822 Add a sheet to track Roles. 2010-03-05 15:17:05 -08:00
Colin Kuskie
6f9b891712 Convert more tests over to Test::Class 2010-03-05 15:16:46 -08:00
Colin Kuskie
b5e03dd90f Remove dead method with the same name as a property. 2010-03-05 14:42:08 -08:00
Colin Kuskie
ecd31580cf Applying class metaroles before the other roles seems to do the right thing. 2010-03-05 10:28:32 -08:00
Colin Kuskie
3c790d9ce5 Add Role presence tests. 2010-03-05 08:51:16 -08:00