Colin Kuskie
e33c41bd43
Add more tests around a test that fails intermittently in AssetLineage.t
2011-05-16 21:57:07 -07:00
Doug Bell
5e6483e97f
add lineage increment_step and _offset for multi-master DB clusters
2011-03-21 18:26:18 -05:00
Graham Knop
b832deecd1
convert all cleanup methods to addToCleanup
2010-06-10 10:09:53 -05:00
Colin Kuskie
2c08b4e712
Fix a bug in getLineageSql, where it would return the empty string. This could cause downstream problems. Fixes bug #11616
2010-06-08 09:22:28 -07:00
Colin Kuskie
310c0add71
When addin a child under a parent that is not committed, adopt the parent's version tag. Fixes bug #11295
2009-12-15 14:25:02 -08:00
Colin Kuskie
1eeb76e96f
newByLineage should log its own error. Fixes bug #11192
2009-11-02 18:30:45 -08:00
Graham Knop
67b729fee0
use note instead of diag in tests for non-error debug output
2009-09-23 08:29:05 -05:00
Colin Kuskie
20814beefd
Update to use automatic tag rollback.
2009-07-23 21:02:53 +00:00
Colin Kuskie
c60237443c
Test cleanups.
...
Fix a leaking group in Asset/Post/permission.t. Threads do not clean
up their groups when they are purged.
2009-05-01 02:17:39 +00:00
Graham Knop
17cd847378
adjusting tests for new behavior
2009-04-10 00:51:49 +00:00
Graham Knop
24da723629
updating copyright year
2009-02-20 23:47:30 +00:00
Graham Knop
29a419e1eb
added: getLineageIterator method to simplify working on large sets of assets
2008-09-05 22:14:04 +00:00
Colin Kuskie
06f52bae9a
Fix how logging gets intercepted. It used to be on by default, now it must be turned on.
2008-02-29 22:09:32 +00:00
JT Smith
93b5ca16e4
updating copyright year
2008-02-07 23:28:18 +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
JT Smith
40a4c3c487
fixing bugs reported by tests
2007-07-29 21:26:35 +00:00
Colin Kuskie
83310ba311
update copyright on tests
2007-07-07 03:56:44 +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
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
Colin Kuskie
a548341aea
More AssetLineage tests.
...
setParent does not clear the internally cached reference to
the parent Asset. This makes persistent code get the wrong
Asset reference.
2007-04-13 21:01:15 +00:00
Colin Kuskie
9e4216c4a0
Add more AssetLineage tests.
...
cascadeLineage will crash because it does not check for duplicate lineages.
Removed a duplicate check for $newParent definedness in setParent.
2007-04-13 20:19:23 +00:00
Colin Kuskie
15c245b06a
AssetLineage tests, and place holders for AssetLineage
2007-04-13 17:27:51 +00:00
JT Smith
61eb59c7f8
bug fixes and new tests
2006-08-02 15:39:23 +00:00