add tests for getContainer

This commit is contained in:
Colin Kuskie 2007-12-31 04:59:52 +00:00
parent 5a5a749643
commit d65f9f1e51

View file

@ -134,7 +134,7 @@ $canViewMaker->prepare(
},
);
plan tests => 59
plan tests => 61
+ scalar(@fixIdTests)
+ scalar(@fixTitleTests)
+ $canAddMaker->plan
@ -478,6 +478,15 @@ ok($addMissing, 'addMissing returns some output when in Admin Mode');
}
################################################################
#
# getContainer
#
################################################################
is($rootAsset->getContainer->getId, $rootAsset->getId, 'getContainer: A folder is a container, its container is itself');
is($fixTitleAsset->getContainer->getId, $defaultAsset->getId, 'getContainer: A snippet is not a container, its container is its parent');
END: {
$session->config->set('extrasURL', $origExtras);
$session->config->set('uploadsURL', $origUploads);