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