Commit graph

1887 commits

Author SHA1 Message Date
Colin Kuskie
4a240ba0e0 Test cleanup, and add extra tests for sanity checks. 2010-02-03 18:34:21 -08:00
Colin Kuskie
4089e39d58 Peel out permissions testing from t/Asset/Asset.t into a separate test. 2010-02-02 08:17:26 -08:00
Colin Kuskie
006570a05a newByUrl should throw an exception. Test it. 2010-01-29 17:35:19 -08:00
Colin Kuskie
387866cfcb Update Asset::File for Moose 2010-01-29 17:17:38 -08:00
Colin Kuskie
193d30ec41 Fix the RootTitle macro. 2010-01-27 21:38:12 -08:00
Colin Kuskie
1736b481b6 Update Article for Moose 2010-01-26 16:13:36 -08:00
Colin Kuskie
0f32e9b6fb Fix the AssetLineage test that I broke. 2010-01-26 15:21:15 -08:00
Colin Kuskie
7e7bc9ca20 Label loop inside getLineage. Drop a clause from getLineageSql, since we can use LIKE to make sure the lineage does not include the parent. Move getLineage tests to the top since downstream tests depend on getting assets in lineage order. 2010-01-26 12:55:40 -08:00
Colin Kuskie
eb60168627 sessionification of AssetLineage, conversion to use moose accessors. 2010-01-26 07:25:51 -08:00
Colin Kuskie
e940dc0427 Change this test to use a Snippet instead of a Template. 2010-01-25 22:52:25 -08:00
Colin Kuskie
d66b3b891b Make revisedBy a property, so it gets written on ->update. Change addRev not to write to the db when it does not need to. Update tests to verify that addRev does the right thing for tagId and revisedBy. 2010-01-25 22:49:22 -08:00
Colin Kuskie
9155f70555 rework test to handle loss of getProperty. use find_attribute_by_name instead. 2010-01-25 19:30:58 -08:00
Colin Kuskie
42b8237f1f make sure get returns aspects _and_ properties. 2010-01-25 19:24:17 -08:00
Colin Kuskie
d4f31870a3 change the name attribute to aspect to denote asset level static attributes like tableName, et. al. 2010-01-25 19:16:05 -08:00
Colin Kuskie
5b24340994 sessionify duplicate. Tweak AssetClipboard test to use Moose methods. 2010-01-22 18:36:54 -08:00
Colin Kuskie
de34ab3b95 fix getLineage. All tests in t/Asset/AssetTrash.t are passing. 2010-01-22 15:25:50 -08:00
Colin Kuskie
451eb33f0f Fix requestAutoCommit. All tests in t/Asset/Asset.t passing. 2010-01-22 15:10:23 -08:00
Colin Kuskie
e5affbd0c2 Add tagId property, fix cloneFromDb. Fix several tests. 2010-01-22 11:42:05 -08:00
Colin Kuskie
5c3a3d440b Fix inheritUrlFromParent, using trigger instead of around. 2010-01-22 11:07:46 -08:00
Colin Kuskie
6573884db6 Add exceptions to newPending. Change it to use newById instead of new. Tweak some messages and tests. 2010-01-22 08:40:49 -08:00
Colin Kuskie
12e7981cc3 Fix a typo in a test. 2010-01-22 08:12:24 -08:00
Colin Kuskie
f798ae533b remove newByDynamicClass tests, which was replaced by newById 2010-01-21 21:44:28 -08:00
Colin Kuskie
04ed78e8f1 Remove use of getAttribute from Asset.pm. Tweak a few tests. 2010-01-21 21:06:58 -08:00
Colin Kuskie
bf0c95d910 Update test for changes in Asset.pm 2010-01-21 20:52:21 -08:00
Colin Kuskie
143e2e0d7b pull permission tests out of Asset.t. Fix getName. 2010-01-21 20:45:58 -08:00
Colin Kuskie
52d5883b77 More exceptions and tests for Asset.pm 2010-01-21 19:52:48 -08:00
Colin Kuskie
9004007b0e Changing undef to exceptions in Asset.pm 2010-01-21 19:10:56 -08:00
Colin Kuskie
be8f582ac7 Add tests for getFormProperties 2010-01-21 18:08:41 -08:00
Colin Kuskie
0a6e0b1160 test for new, with no assetId. Apparently, you cannot return undef from BUILDARGS. 2010-01-20 21:56:15 -08:00
Colin Kuskie
56eadab746 Update test for new Moose API. 2010-01-20 21:54:29 -08:00
Colin Kuskie
b12ed7ef47 Tests for getDefault. 2010-01-20 20:58:27 -08:00
Colin Kuskie
a00d173fe6 Rough conversion of Shortcut to Moose, so Asset cleanup works. Fix a bug in getLineage. Update tests for get_tables. 2010-01-20 19:12:04 -08:00
Colin Kuskie
3a425f29bc Change the name of the sku accessor for shipsSeparately to isShippingSeparately, since it clashes with a property. Add tests. t/Asset/Sku.t passes. 2010-01-20 18:47:35 -08:00
Colin Kuskie
caa1f330b8 Fix newByPropertyHashRef, which is required for class dispatch. Add tests. Fix addChild to use newByPropertyHashRef. 2010-01-20 18:44:48 -08:00
Colin Kuskie
675bc49f05 tests for getParent and addRevision. 2010-01-15 17:01:22 -08:00
Colin Kuskie
7ee588c38e Update the migration docs a little. Begin to build a test for addChild/addRev. 2010-01-14 13:34:44 -08:00
Colin Kuskie
1331bf9828 Remove more instances of direct hash access for properties. 2010-01-14 10:31:38 -08:00
Colin Kuskie
02861471cb Tests for update 2010-01-14 08:55:33 -08:00
Colin Kuskie
da6bbd1669 Fix setSize to work with Moose attributes. Update the SQL query. 2010-01-13 17:08:34 -08:00
Colin Kuskie
10ca1fd206 Tests for writing to the database. 2010-01-13 16:43:25 -08:00
Colin Kuskie
d14db689b8 Stubbing out tests for assetId, write. 2010-01-13 10:31:44 -08:00
Colin Kuskie
72c114d031 Testing Moose setters. They accept undef... 2010-01-07 13:48:09 -08:00
Colin Kuskie
0627d7adbf add uiLevel asset attribute. Begin to work on write. 2010-01-04 19:14:53 -08:00
Colin Kuskie
ce3edcf743 Move get_tables from Meta/Class into Meta/Asset. s/getTables/meta->get_tables/; 2010-01-04 15:34:24 -08:00
Colin Kuskie
b72e3a1cd1 getClassById encapculates getting a className from the database, indexed by assetId.
Also, work on newById, newByUrl.
2010-01-04 11:33:09 -08:00
Colin Kuskie
fde81306c6 Asset work related to class dispatch. 2010-01-04 10:59:48 -08:00
Colin Kuskie
38144bd58f Add assetId attribute to Asset.pm, and tests. 2009-12-30 08:35:21 -08:00
Colin Kuskie
cb0ca14958 Add a test for get. 2009-12-29 12:05:23 -08:00
Colin Kuskie
6733595dfc Fix title, menuTitle and url around modifiers. Tests for title, menuTitle.
menuTitle is set to be lazy because it depends on title as a default.
2009-12-28 18:36:19 -08:00
Colin Kuskie
0fd922daed First work with BUILDARGS. Set defaults for the title,menuTitle. Some tests in t/Asset.t
From this point forward, WebGUI::Asset->new($session, $assetId)
will only return the Root node, and not any other classes.
2009-12-27 19:05:20 -08:00