Commit graph

95 commits

Author SHA1 Message Date
Graham Knop
6f102973dd use temp config file for testing 2010-06-10 18:58:25 -05:00
Colin Kuskie
923e03f048 Add a method for getViewCacheKey. Update number of tests. 2010-05-09 19:03:20 -07:00
Graham Knop
2400f19099 Merge branch 'master' into WebGUI8 2010-04-13 07:50:02 -05:00
Colin Kuskie
006570a05a newByUrl should throw an exception. Test it. 2010-01-29 17:35:19 -08:00
Colin Kuskie
451eb33f0f Fix requestAutoCommit. All tests in t/Asset/Asset.t passing. 2010-01-22 15:10:23 -08:00
Colin Kuskie
e5affbd0c2 Add tagId property, fix cloneFromDb. Fix several tests. 2010-01-22 11:42:05 -08:00
Colin Kuskie
5c3a3d440b Fix inheritUrlFromParent, using trigger instead of around. 2010-01-22 11:07:46 -08:00
Colin Kuskie
6573884db6 Add exceptions to newPending. Change it to use newById instead of new. Tweak some messages and tests. 2010-01-22 08:40:49 -08:00
Colin Kuskie
f798ae533b remove newByDynamicClass tests, which was replaced by newById 2010-01-21 21:44:28 -08:00
Colin Kuskie
04ed78e8f1 Remove use of getAttribute from Asset.pm. Tweak a few tests. 2010-01-21 21:06:58 -08:00
Colin Kuskie
143e2e0d7b pull permission tests out of Asset.t. Fix getName. 2010-01-21 20:45:58 -08:00
Colin Kuskie
52d5883b77 More exceptions and tests for Asset.pm 2010-01-21 19:52:48 -08:00
Colin Kuskie
9004007b0e Changing undef to exceptions in Asset.pm 2010-01-21 19:10:56 -08:00
Colin Kuskie
56eadab746 Update test for new Moose API. 2010-01-20 21:54:29 -08:00
Colin Kuskie
27a7c099ba fix: getIsa returns undef for pending assets.
Add a new option flag to getIsa, called returnAll.  If returnAll = 1, then
assets are returned regardless of status.  Otherwise, getIsa will only
return committed assets.
2009-12-08 17:22:59 -08:00
JT Smith
3938f9ff0d removed last remnants of old definition 2009-10-22 17:00:45 -05:00
Colin Kuskie
2250ab0452 Fix a typo in Asset->checkView, which redirected assets in the clipboard to the trash instead. Fixes bug #11139. 2009-10-16 14:31:26 -07:00
Graham Knop
60a4a9b140 mark $session->datetime->time as deprecated and remove its use from core code 2009-10-05 20:56:37 -05:00
Doug Bell
5c03cfbfbe fixed #10544: Child assets under uncommitted parents 2009-10-02 01:03:34 -05:00
Colin Kuskie
9d438f7266 Fix bad URLs from happening when inheritUrlFromParent is used. Fixes bug #11011 2009-09-22 11:45:06 -07:00
Colin Kuskie
2948e68781 Fix 10939, commit with approval breaks on assets with autocommit children, Post, Story, Wiki, Event, etc.
Encapsulate a new method to get a fresh asset from the db.  With tests.
2009-09-08 21:17:41 -07:00
Graham Knop
39127b7ec0 add tests for url extensions 2009-08-19 18:05:28 +00:00
Colin Kuskie
2d64657165 Use WebGUI::Test rollback methods instead of an END block. 2009-07-09 20:31:25 +00:00
Colin Kuskie
f0eaa51d3a If adding an asset is added to another asset with an open version tag, put the
new asset in that version tag, too.
2009-06-23 19:32:40 +00:00
Colin Kuskie
61b4e1e826 Never delete an asset property key. 2009-06-20 00:16:34 +00:00
Colin Kuskie
c93075519f Update test to work with new fixUrl code. 2009-05-07 16:42:04 +00:00
Colin Kuskie
39607fc208 Another batch of clean-ups for users and groups. 2009-05-01 02:48:18 +00:00
Colin Kuskie
f9e3c0c99c Check what happens with URLS with an initial dot in them 2009-04-24 16:53:35 +00:00
Colin Kuskie
1edaca4ed2 Merge up to 10305 2009-04-13 17:04:23 +00:00
Colin Kuskie
4c1307e3d0 merge to 10219 2009-04-08 16:35:31 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Colin Kuskie
665284392f forward porting quotes in asset title fixTitle test 2008-12-11 19:20:12 +00:00
Colin Kuskie
13eb87ffe5 forward porting fix for non-unique separator strings, ~~~, #8543 2008-11-21 23:07:05 +00:00
Colin Kuskie
79cbb85285 fix Asset.t. Safe references are not always safe 2008-09-30 18:23:17 +00:00
Colin Kuskie
21545535be replace diag output with a comment 2008-09-30 17:36:31 +00:00
JT Smith
d75f401ac1 fixes to match config file changes 2008-09-30 17:25:25 +00:00
Graham Knop
336cb209fd protect against premature test failure corrupting config, remove debug code 2008-09-30 17:07:26 +00:00
Colin Kuskie
fbc6e55141 fix inheritUrlFromParent 2008-08-21 20:27:30 +00:00
Graham Knop
edebe7e2b9 revert oops 2008-08-19 20:48:47 +00:00
Doug Bell
57b8cc4bae fixed: loginBox macro can no longer return the user to the logout page, logging them out 2008-08-19 20:39:43 +00:00
Colin Kuskie
3c913228d1 add a test to check inheritUrlFromParent when creating an asset, rather than updating it 2008-08-15 17:50:03 +00:00
Graham Knop
f082e2d14e request->body and request->param should be the same in tests 2008-08-07 22:55:35 +00:00
Colin Kuskie
4392442655 add another fixTitle test for title only with HTML 2008-07-16 00:42:00 +00:00
Colin Kuskie
c4af4b4f26 remove getProductImportNode test from Asset.t 2008-07-13 18:21:58 +00:00
Chris Nehren
05cf8fa24c Fixed: One can now turn off inheritUrlFromParent, and the code is now more
robust: moved from Asset->update to Asset->fixUrl.
2008-06-20 19:21:30 +00:00
Chris Nehren
9c77fdcce7 Add the inheritUrlFromParent property, which causes the asset to prepend its
parent's URL to its own URL. Boolean, default off, found in the meta tab.
2008-05-30 23:38:07 +00:00
Colin Kuskie
3ad1668a21 Promote the getAllProducts to Asset.pm as getIsa. Move the tests
from Asset/Sku/Product.t into Asset/Asset.t, and add tests to check
that inheritance is respected.
2008-05-28 16:06:52 +00:00
Colin Kuskie
9c9da302f1 remove colons from END blocks, so they actually act like END blocks 2008-05-09 18:14:14 +00:00
Colin Kuskie
c920bee629 add an explicit test for the safe copying of Asset properties inside get 2008-02-20 16:40:50 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00