fixed some broken tests
This commit is contained in:
parent
cd3f31924a
commit
b5aea5a60b
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue