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