almost done fixing addRevision tests
This commit is contained in:
parent
6931fd471e
commit
7c14d1e6c4
122 changed files with 389 additions and 1052 deletions
|
|
@ -398,16 +398,14 @@ TODO: {
|
|||
ok(0, 'test a child of the media folder');
|
||||
}
|
||||
|
||||
my $versionTag = WebGUI::VersionTag->getWorking($session);
|
||||
WebGUI::Test->addToCleanup($versionTag);
|
||||
my $statefulAsset = WebGUI::Asset->getRoot($session)->addChild({ className => 'WebGUI::Asset::Snippet' });
|
||||
$versionTag->commit;
|
||||
my $parentAsset = WebGUI::Test->asset;
|
||||
my $statefulAsset = $parentAsset->addChild({ className => 'WebGUI::Asset::Snippet' });
|
||||
$session->asset( $statefulAsset );
|
||||
|
||||
$statefulAsset->state('published');
|
||||
is(
|
||||
$session->url->getBackToSiteURL,
|
||||
WebGUI::Asset->getRoot($session)->getUrl,
|
||||
$parentAsset->getUrl,
|
||||
q!getBackToSiteURL: When asset state is published, it returns you to the Assets container!
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue