Commit graph

50 commits

Author SHA1 Message Date
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
Doug Bell
054534564b fixed tests for newByDynamicClass and added a couple more for it 2008-01-25 17:47:03 +00:00
Colin Kuskie
36b622622e resolved bug/question about assetAddPrivilege and Turn On Admin group. Fixing test 2008-01-09 17:25:16 +00:00
Colin Kuskie
10ef562d94 refine the one newByDynamicClass test 2008-01-05 05:36:11 +00:00
Colin Kuskie
a05e90408e convert the commented out code into TODOs 2008-01-05 05:00:27 +00:00
Colin Kuskie
2eb1883345 Add a stub test for newByDynamicUrl, that really should
have been a stub test for update.
Add tests for getNotFound, testing what is returned for both
a page and a Snippet.
2008-01-05 04:05:37 +00:00
Colin Kuskie
047b0c5d3e update plan and invert test for new default for isExportable 2008-01-03 00:23:16 +00:00
Chris Nehren
7accc3c57f Add fine-grained export controls. You can now specify whether you want specific
assets to be exportable. If any of an asset's parents aren't exportable, that
asset also won't be exportable.
2008-01-02 22:32:40 +00:00
Colin Kuskie
3a33baee4e Cover several other small utility routines. More getNotFound
tests need to be written.
2008-01-02 02:27:25 +00:00
Colin Kuskie
fb54ca2a1c Coverage tests for assetExists. 2008-01-01 21:35:19 +00:00
Colin Kuskie
33c4cd833b Add the failing test for assetAddPrivileges back in, but don't run it.
Add tests for assetUiLevel and getUiLevel.
2008-01-01 19:38:34 +00:00
Colin Kuskie
280cc48094 tests for getToolbarState, toggleToolbar and getUiLevel 2008-01-01 04:09:35 +00:00
Colin Kuskie
7299ba8f7e add tests for getTitle and getMenuTitle 2008-01-01 03:07:49 +00:00
Colin Kuskie
ea10fc3047 Add tests for getName. Note that the coverage tests said this
was already covered, even though there were no direct tests for
it.  This is because it's called by other methods.
2007-12-31 05:21:00 +00:00
Colin Kuskie
d65f9f1e51 add tests for getContainer 2007-12-31 04:59:52 +00:00
Colin Kuskie
5a5a749643 Add tests for Asset->addMissing 2007-12-31 04:45:07 +00:00
Colin Kuskie
1e1e7a2afa Clean up left-over scratch in two tests to try and get
Workflow/Activity/DeleteExpiredSessions to work in the smoke
tests.
Comment out the two failing tests in Asset.t until my bug
gets answered.  Turns out you can't TODO them because
it requires using Test::Builder instead of Test::More.
2007-12-31 02:12:12 +00:00
Colin Kuskie
44162ea113 add some more comments to make sure that nothing bad happens 2007-12-27 20:38:31 +00:00
Colin Kuskie
cf968818b4 WGBP indent Asset::canView.
Add coverage tests for canView.
2007-12-27 06:36:04 +00:00
Colin Kuskie
ed177c614e WebGUI::Test::Maker::Permission will now use usernames instead of userIds in comments
if they are available.
Move the getLanguage test out of the SKIP block dependent on install the PigLatin
language pack.
Update Maker users with usernames in Asset.t
Add tests for assetAddPrivileges.  These tests currently cause the Turn On Admin
checks to fail.  A bug has been filed for this, and the tests may be rewritten
based on the resolution of the bug.
2007-12-27 06:06:32 +00:00
Colin Kuskie
6dfe05b119 add more users and groups to check canEdit 2007-12-25 19:39:44 +00:00
Colin Kuskie
d0228ddbb4 add some more users for testing canAdd and canEdit 2007-12-24 01:25:10 +00:00
Colin Kuskie
924f09a09f Extend WebGUI::Test::Maker::Permission to handle class methods, like Asset->canAdd and Operations.
Add canEdit and canAdd tests to Asset.t
2007-12-23 23:30:26 +00:00
Colin Kuskie
88b7a7c744 coverage and functional tests for getIcon 2007-12-22 21:48:19 +00:00
Colin Kuskie
14f5ebdebc tests for fixTitle 2007-12-22 01:16:07 +00:00
Colin Kuskie
060dd85963 Add tests to cover fixId and one test for fixTitle.
Fix a bug where fixId would pass integers of any length.
2007-12-21 22:57:06 +00:00
Colin Kuskie
58dd3e075a Add fixUrl tests for duplicate assets and generated urls. 2007-12-17 03:10:54 +00:00
Colin Kuskie
8e52096a0a Re-indent some fixUrl code and realign comments.
Add more fixUrl tests for coverage.  Leading zeroes are
handled strangely.
2007-12-16 22:59:00 +00:00
Colin Kuskie
b70ef9d23a Add tests to cover the removal of extensions in the "directory"
parts of the path.  Refactor out the while loop with match and
nested s/// into a single regexp.
2007-12-16 04:13:53 +00:00
Colin Kuskie
2de8dbfc9e remove test for passthruUrls, since they are now handled by pluggable ops 2007-12-16 00:25:00 +00:00
Colin Kuskie
33ba29b338 add support for writing URL extension tests later 2007-12-13 00:29:25 +00:00
Colin Kuskie
afcc90b130 Documented a regexp in Session/Url.pm
Add passthruUrls to the list of URLs that are changed by fixUrl.
Wrote a bunch of POD for fixUrl
Changed the regular expressions related to badUrl so they don't need to copy the data.  This
will speed them up.
Fixed a bug where trailing slashes would defeat the badUrl check.
Re-indented according to WGBP.
Added tests to cover all of the changes.
2007-12-11 22:51:31 +00:00
Colin Kuskie
ac6651cdcd forward porting fixUrl bugfix and test 2007-12-11 16:40:05 +00:00
Colin Kuskie
225590fa33 Add tests for the tempspace node. 2007-12-01 05:24:30 +00:00
Colin Kuskie
5591997af5 finish addEditLabel test, needed to Mock the request to that it could check $session->form for func=add 2007-07-21 21:26:58 +00:00
Colin Kuskie
7018d38f15 Refactor out the Wobject level www_edit code that switches between Add Wobject and
Edit Wobject into an Asset level method.  Convert Wobject.pm and Snippet.pm to use it.
Build a very bare bones test method for it.
2007-07-20 23:04:43 +00:00
Colin Kuskie
83310ba311 update copyright on tests 2007-07-07 03:56:44 +00:00
Colin Kuskie
4469301092 Based on SVN history, put the behavior of the SQL back and fixed the POD and
the tests.
2007-02-25 06:20:54 +00:00
Colin Kuskie
5a379fe91e Add tests for urlExists and fix bugs in the method. It now handles
placeholders correctly and does exactly what the POD says, assetId
requires that the url be with that assetId, rather than not in that
assetId.
2007-02-25 06:18:15 +00:00
Colin Kuskie
adb099dcea Add test to make sure Import Node's parent is Asset Root. 2006-09-07 20:12:05 +00:00
Roy Johnson
6b2eeba271 Added test for import node constructor 2006-09-07 18:39:22 +00:00
Roy Johnson
da1b2d3581 test to check the getMedia asset constructor 2006-08-16 21:23:05 +00:00
Frank Dillon
0703c41165 added tests for newByHashref constructor 2006-08-16 13:52:19 +00:00
Colin Kuskie
000b2fcce3 Reverting previous work. Asset->new must return an Asset, even if
no className is passed and the invocant's class is Asset.  This is
due to the root.  In the db, the root Asset has the className WebGUI::Asset,
and the getRoot method matches this.
Changed the failing test in Asset.t to look for a WebGUI::Asset to be returned.
Added two tests to Asset.t to validate the object returned by Asset->getRoot method.
Reverted previous work and updated the POD for Asset->new.
2006-08-08 17:43:44 +00:00
Roy Johnson
2e80acb9e8 10 new tests for Asset 2006-08-02 19:38:55 +00:00
Roy Johnson
93fc3bfa88 Started a new test suite for assets 2006-08-02 15:35:03 +00:00