Move Article.t over to using the new storage API for checking for storage location existance.

This commit is contained in:
Colin Kuskie 2011-04-11 08:54:39 -07:00
parent 4a58f574b1
commit f2b5f35d49

View file

@ -98,12 +98,7 @@ is ($duplicateFilename, $filename, "duplicate method copies collateral");
$duplicateArticle->purge();
# The get method will create the directory if it doesnt exist... very strange.
$duplicateStorage = WebGUI::Storage->get($session,$duplicateStorageId);
# so lets check for the file instead
$duplicateFilename = $duplicateStorage->getFiles->[0];
is ($duplicateFilename, undef, 'purge method deletes collateral');
ok (!WebGUI::Storage->storageExists($session, $duplicateStorageId), 'purge method deletes collateral');
}