Commit graph

2319 commits

Author SHA1 Message Date
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
ba91560a96 Fix Notify About Low Stock email to be more user friendly. Fixes bug #11364. 2010-01-21 11:56:01 -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
b397651620 Update the Product test for changes in the Storage API. 2010-01-19 18:39:43 -08:00
Colin Kuskie
066e654640 Improve the performance of getThumbnailUrl by 1400%. Fixes bug #11346 2010-01-19 15:57:28 -08:00
Colin Kuskie
ea53dcc037 Update version for JavaScript::Packed to handle some gnarly JS. Fixes bug #11034. 2010-01-19 09:06:35 -08:00
Colin Kuskie
6fe662ef83 Make sure template attachments are duplicated. Fixes bug #11355. 2010-01-18 10:58:03 -08:00
Colin Kuskie
675bc49f05 tests for getParent and addRevision. 2010-01-15 17:01:22 -08:00
Colin Kuskie
81d811bef1 Add the Topic description to the default Story Topic template. 2010-01-14 15:27:53 -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
47276ce4ad Fix exception handling by the NotifyAboutLowStock workflow activity. Fixes bug #11343. 2010-01-12 11:07:43 -08:00
Colin Kuskie
06ac0360b6 Update test for new profile field value for gender. 2010-01-11 16:45:27 -08:00
Colin Kuskie
fc09d73b65 Update test for code changes with bug fix. 2010-01-11 16:34:50 -08:00
Colin Kuskie
6e0983a67b Update the number of threads in the CS when a thread is archived. Fixes bug #11341. 2010-01-11 11:54:59 -08:00
Colin Kuskie
72c114d031 Testing Moose setters. They accept undef... 2010-01-07 13:48:09 -08:00
Colin Kuskie
b5f5f8f6e8 Threads should not show pagination query params in their URLs. 2010-01-07 08:34:27 -08:00
Colin Kuskie
173bec1574 Handle linking to posts not on the first page on a thread view. Fixes bug #11318. 2010-01-05 20:52:27 -08:00
Colin Kuskie
7281a3dd8e Fix the CS search, so that links to anchors are correct. Fixes bug #11318 2010-01-05 16:47:56 -08:00
Colin Kuskie
ff1dbc1841 Update tests for new EU VAT workflow 2010-01-05 13:32:08 -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
Colin Kuskie
12e160bf8c Fix passing regex characters to the highlighter, which makes it break. Fixes bug #11311. 2009-12-21 11:38:52 -08:00
Colin Kuskie
030f6bccf0 Force set to process properties in insertion order.
Note, we should look for a way to make this more efficient.
2009-12-18 15:28:10 -08:00
Colin Kuskie
cb9510d9b8 Break Definition.t into Defintion.t and Definition/Asset.t 2009-12-18 14:57:12 -08:00
Colin Kuskie
c50e2f9bcb Fix tests. 2009-12-18 13:08:53 -08:00
Colin Kuskie
0e90ad00b8 Set up filtering on title, menuTitle and URL. This is done via "around". 2009-12-18 12:59:01 -08:00
Colin Kuskie
ed0eeb9bc5 Merge branch 'moose-definition' into static_definition. Moved Asset.pm over to the new Definition. 2009-12-18 11:40:33 -08:00
Colin Kuskie
8c0b73f2ec Fix an infinite loop with getting Photo under an album that is not committed. Fixes bug #11235. 2009-12-18 08:24:44 -08:00