almost done fixing addRevision tests
This commit is contained in:
parent
6931fd471e
commit
7c14d1e6c4
122 changed files with 389 additions and 1052 deletions
|
|
@ -18,7 +18,7 @@ use Test::More; # increment this value for each test you create
|
|||
|
||||
my $session = WebGUI::Test->session;
|
||||
|
||||
my $homeAsset = WebGUI::Asset->getDefault($session);
|
||||
my $homeAsset = WebGUI::Test->asset;
|
||||
|
||||
my ($time) = $session->dbSlave->quickArray("SELECT max(revisionDate) FROM assetData where assetId=?",[$homeAsset->getId]);
|
||||
|
||||
|
|
@ -49,9 +49,6 @@ $numTests += 2; #For the use_ok, default asset, and revisionDate=0
|
|||
|
||||
plan tests => $numTests;
|
||||
|
||||
my $versionTag = WebGUI::VersionTag->getWorking($session);
|
||||
addToCleanup($versionTag);
|
||||
|
||||
my $output = WebGUI::Macro::LastModified::process($session);
|
||||
is($output, '', "Macro returns '' if no asset is defined");
|
||||
|
||||
|
|
@ -63,9 +60,7 @@ foreach my $testSet (@testSets) {
|
|||
is($output, $testSet->{output}, $testSet->{comment});
|
||||
}
|
||||
|
||||
$versionTag->set({name=>"Adding assets for LastModified macro tests"});
|
||||
|
||||
my $root = WebGUI::Asset->getRoot($session);
|
||||
my $root = WebGUI::Test->asset;
|
||||
my %properties_A = (
|
||||
className => 'WebGUI::Asset',
|
||||
title => 'Asset A',
|
||||
|
|
@ -78,7 +73,6 @@ my %properties_A = (
|
|||
);
|
||||
|
||||
my $assetA = $root->addChild(\%properties_A, $properties_A{id}, 0e0);
|
||||
$versionTag->commit;
|
||||
|
||||
##Save the original revisionDate and then rewrite it in the db to be 0
|
||||
my $revDate = $session->db->quickArray('select max(revisionDate) from assetData where assetId=?', [$assetA->getId]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue