30 lines
1 KiB
Perl
30 lines
1 KiB
Perl
#-------------------------------------------------------------------
|
|
# 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()");
|
|
|
|
|