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
Doug Bell
ac1a7dc3a3
fix: CS posts get re-ordered when copy/paste
2007-12-13 17:26:28 +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
350d698441
forward porting another batch of Event getTemplateVar tests
2007-11-28 05:45:11 +00:00
Colin Kuskie
0a1974ba4c
forward porting Event dateSpan display fix and Event.t test
2007-11-28 04:47:30 +00:00
Graham Knop
865c1d315b
merging 7.4 changes
2007-11-22 06:09:27 +00:00
Colin Kuskie
afb67294b8
more coverage tests for getDescendantCount, checking state and status
2007-11-21 18:04:41 +00:00
Colin Kuskie
185a582ef9
State and status fix for AssetLineage->getDescendantCount, and tests to
...
double check it.
2007-11-21 03:43:20 +00:00
Colin Kuskie
80333b1141
add more tests to cover AssetLineage->getChildCount. Optimize the new SQL query in getChildCount
2007-11-20 21:15:06 +00:00
Colin Kuskie
0799d70428
Fix for AssetLineage's getChildCount. It did not consider the
...
asset's status, only the state. Change the SQL query to always
look at status, and consider state based on the options passed
to the method.
Add two quick tests to test that. More to follow.
2007-11-20 04:46:45 +00:00
Chris Nehren
9db0430032
Fix the groupToEditPost field defaulting to the groupIdEdit field. Make sure
...
that the added collab system in the test has a parent asset as well, to ensure
that the inheritance works properly.
2007-11-07 22:29:21 +00:00
Chris Nehren
e20e6061f2
Don't delete the groups used in the Post test, they're needed. May want to make
...
mock groups in the future. Also clean up some commented out things from
Collaboration.t.
2007-11-06 23:06:09 +00:00
Chris Nehren
0d689afa4c
Add the groupToEditPost field to the Collaboration system. This allows users
...
to specify a group of users that will always be able to do edits on posts,
regardless of whether they own those posts and independent of the editTimeout
field.
2007-11-06 22:58:22 +00:00
Colin Kuskie
598a0d0990
fix for choosing uncommitted templates as a User Style Template
2007-10-18 23:17:18 +00:00
Colin Kuskie
05b33ec3b8
temporary hack to fix a Test::MockObject related test failure
2007-10-17 15:47:31 +00:00
Graham Knop
847fce0689
fix tests, typo
2007-08-24 08:23:33 +00:00
Diona Kidd
5efea40a96
Adding SQLForm test
2007-08-23 02:30:22 +00:00
JT Smith
40a4c3c487
fixing bugs reported by tests
2007-07-29 21:26:35 +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
75a7fe80ba
add some comment headers
2007-07-03 20:44:12 +00:00
Colin Kuskie
4f0be1e871
Add tests to check for the return object type of getStorageFromPost, so
...
there should be no future problems in that area.
2007-07-02 04:30:51 +00:00
Colin Kuskie
c615268d94
fix a bug with the new assetDbProperties method. It used the wrong class
2007-07-01 05:15:53 +00:00
Colin Kuskie
cc7687c877
add test section headers, for documentation
2007-06-14 05:17:38 +00:00
Colin Kuskie
cde6e72d93
add tests for updateMetaDataField, which adds a value specific to the asset
2007-06-14 05:11:43 +00:00
Colin Kuskie
4875df88f7
testing deleteMetaDataField
2007-06-13 04:50:43 +00:00
Colin Kuskie
79fe687c7f
add more tests to check out getMetaFields, all and one at a time
2007-06-13 04:37:28 +00:00
Colin Kuskie
213c161581
Add a comment to AssetMetaData.t
...
Add more tests to Session.t to check the $session->user method.
2007-06-12 03:41:41 +00:00
Colin Kuskie
32f7866f3b
Added a TODO in AssetPackage and changed a comment inside AssetLineage for clarity
2007-06-07 20:02:43 +00:00
Colin Kuskie
efea7c9685
fix a typo in the AssetMetaData, and add code to WebGUI::Test to force all output onto STDOUT. Step 1 to smolder
2007-06-06 23:40:14 +00:00
Colin Kuskie
804bad9a48
very beginnings of an Asset MetaData test, along with an API extension to make adding metaData possible
2007-06-05 23:33:50 +00:00
Colin Kuskie
0a7e06edca
Remove extra arguments to rollback. Not sure how those got added
...
in the first place.
Fix the WikiPage, which was not cleaning up after itself.
2007-05-29 22:52:52 +00:00
JT Smith
f5f358ccf3
fixed tests
...
preparing for release
2007-05-23 17:42:51 +00:00
Colin Kuskie
fbec25f5f7
rework tests to handle new asset behavior
2007-05-07 04:32:04 +00:00
Colin Kuskie
a8c8568d36
addChild: handling really deep assets works
2007-04-17 05:34:26 +00:00
Colin Kuskie
0d9bd95030
document some TODO tests
2007-04-15 05:02:24 +00:00
Colin Kuskie
8d65d4322c
getLineage tests. This thing is so big it could have its own test file.
2007-04-15 05:00:06 +00:00
Colin Kuskie
bd577a6712
Cache tests for getFirst- and getLastChild, hasChildren.
...
newByLineage tests, with cache
changed newByLineage to use placeholders
Coverage is 59/55/84
2007-04-15 04:30:55 +00:00
Colin Kuskie
450aab40a0
Some coverage tests for setRank. Added tests and a new folder
...
for getDescendantCount.
Pushed the reversal of order back into getLineage. WGBP indentation.
2007-04-15 03:41:38 +00:00
Colin Kuskie
483daf6671
More rank swapping tests, cleaned up a bug in the tests that passed but should
...
not have.
Updated the POD in AssetLineage to show which methods alter the object's stored
lineage versus the information in the database.
2007-04-15 02:02:03 +00:00
Colin Kuskie
5e643336bb
Add a test in setParent for the condition where the current user cannot edit
...
the new parent.
Added a basic test for setRank.
2007-04-14 02:45:50 +00:00
Colin Kuskie
a7cb2133c9
10 tests for rank swap, promote and demote
...
changed promote and demote to use placeholders in AssetLineage.
Added explicit return values to demote
2007-04-14 01:50:11 +00:00
Colin Kuskie
c9e2a8b9f3
11 more AssetLineage tests for various rank methods.
...
Have setParent update self's parentId for persistent code.
2007-04-14 00:50:35 +00:00
Colin Kuskie
e894ed29ae
Tests for getParent and getParentLineage
...
Fixed getParentLineage. The regular expression only matched strings
that were 8 characters long.
2007-04-13 21:45:32 +00:00