bug fixes and new tests
This commit is contained in:
parent
93fc3bfa88
commit
61eb59c7f8
5 changed files with 52 additions and 7 deletions
30
t/Asset/AssetLineage.t
Normal file
30
t/Asset/AssetLineage.t
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#-------------------------------------------------------------------
|
||||
# WebGUI is Copyright 2001-2006 Plain Black Corporation.
|
||||
#-------------------------------------------------------------------
|
||||
# Please read the legal notices (docs/legal.txt) and the license
|
||||
# (docs/license.txt) that came with this distribution before using
|
||||
# this software.
|
||||
#-------------------------------------------------------------------
|
||||
# http://www.plainblack.com info@plainblack.com
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
use FindBin;
|
||||
use strict;
|
||||
use lib "$FindBin::Bin/../lib";
|
||||
|
||||
use WebGUI::Test;
|
||||
use WebGUI::Session;
|
||||
|
||||
use WebGUI::Asset;
|
||||
use Test::More tests => 2; # increment this value for each test you create
|
||||
|
||||
# Test the methods in WebGUI::AssetLineage
|
||||
|
||||
my $session = WebGUI::Test->session;
|
||||
|
||||
my $asset = WebGUI::Asset->getImportNode($session);
|
||||
|
||||
is($asset->formatRank(76), "000076", "formatRank()");
|
||||
is($asset->getLineageLength(), (length($asset->get("lineage")) / 6), "getLineageLength()");
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue