37 lines
1.2 KiB
Perl
37 lines
1.2 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::Macro::PageUrl;
|
|
use WebGUI::Session;
|
|
use Data::Dumper;
|
|
|
|
use Test::More; # increment this value for each test you create
|
|
|
|
my $session = WebGUI::Test->session;
|
|
|
|
plan tests => 2;
|
|
|
|
my $homeAsset = WebGUI::Asset->getDefault($session);
|
|
|
|
##Make the homeAsset the default asset in the session.
|
|
$session->asset($homeAsset);
|
|
|
|
my $output = WebGUI::Macro::PageUrl::process($session);
|
|
is($output, $session->url->gateway.$homeAsset->get('url'), 'fetching url for site default asset');
|
|
|
|
TODO: {
|
|
local $TODO = "Tests to make later";
|
|
ok(0, 'Fetch url from locally made asset with known url');
|
|
}
|