fixed some broken tests

This commit is contained in:
Roy Johnson 2006-12-13 14:20:06 +00:00
parent cd3f31924a
commit b5aea5a60b
2 changed files with 4 additions and 2 deletions

View file

@ -64,11 +64,13 @@ foreach my $newSetting (keys %{$newArticleSettings}) {
}
# Test the duplicate method... not for assets, just the extended duplicate functionality of the article wobject
my $path = $session->config->getWebguiRoot()."/t/supporting_collateral/";
my $filename = "page_title.jpg";
# Use some test collateral to create a storage location and assign it to our article
my $storage = WebGUI::Storage::Image->create($session);
my $storedFilename = $storage->addFileFromFilesystem("../../supporting_collateral/".$filename);
system("pwd");
my $storedFilename = $storage->addFileFromFilesystem($path.$filename);
my $filenameOK = is ($storedFilename, $filename, 'storage created correctly');
diag(join("\n", @{ $storage->getErrors })) unless $filenameOK;

View file

@ -16,7 +16,7 @@ use lib "$FindBin::Bin/../../lib";
use WebGUI::Test;
use WebGUI::Session;
use Test::More tests => 3; # increment this value for each test you create
use Test::More tests => 4; # increment this value for each test you create
use WebGUI::Asset::Wobject::Calendar;
use WebGUI::Asset::Event;