diff --git a/t/Asset/Wobject/Article.t b/t/Asset/Wobject/Article.t index a47d5d4f0..e97ec0162 100644 --- a/t/Asset/Wobject/Article.t +++ b/t/Asset/Wobject/Article.t @@ -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; diff --git a/t/Asset/Wobject/Calendar.t b/t/Asset/Wobject/Calendar.t index cb18a31a3..9da16a99d 100644 --- a/t/Asset/Wobject/Calendar.t +++ b/t/Asset/Wobject/Calendar.t @@ -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;