Add more tests around a test that fails intermittently in AssetLineage.t

This commit is contained in:
Colin Kuskie 2011-05-16 21:57:07 -07:00
parent aaa2d8e8f2
commit e33c41bd43

View file

@ -17,7 +17,7 @@ use WebGUI::Session;
use WebGUI::User;
use WebGUI::Asset;
use Test::More tests => 98; # increment this value for each test you create
use Test::More tests => 99; # increment this value for each test you create
use Test::Deep;
# Test the methods in WebGUI::AssetLineage
@ -352,7 +352,7 @@ is($snippets[6]->getRank(), '5', 'setRank was able to set an arbitrary rank(lowe
$lineageIds = $folder->getLineage(['descendants']);
cmp_bag(\@snipIds, $lineageIds, 'setRank reordered the other siblings appropiately');
$snippets[6]->setRank('000007');
ok $snippets[6]->setRank('000007'), 'move snippet 6 to rank 7';
is($snippets[6]->getRank(), '7', 'setRank: move the Asset back (higher rank)');
@snipIds = map { $_->getId } @snippets;