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
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