Add tests for getName. Note that the coverage tests said this

was already covered, even though there were no direct tests for
it.  This is because it's called by other methods.
This commit is contained in:
Colin Kuskie 2007-12-31 05:21:00 +00:00
parent d65f9f1e51
commit ea10fc3047

View file

@ -134,7 +134,7 @@ $canViewMaker->prepare(
},
);
plan tests => 61
plan tests => 64
+ scalar(@fixIdTests)
+ scalar(@fixTitleTests)
+ $canAddMaker->plan
@ -487,6 +487,16 @@ ok($addMissing, 'addMissing returns some output when in Admin Mode');
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');
################################################################
#
# getName
#
################################################################
is($fixTitleAsset->getName, $i18n->get('assetName', 'Asset_Snippet'), 'getName: Returns the internationalized name of the Asset, Snippet');
is($importNode->getName, $i18n->get('assetName', 'Asset_Folder'), 'getName: Returns the internationalized name of the Asset, Folder');
is($canEditAsset->getName, $i18n->get('asset', 'Asset'), 'getName: Returns the internationalized name of the Asset, core Asset');
END: {
$session->config->set('extrasURL', $origExtras);
$session->config->set('uploadsURL', $origUploads);