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:
parent
d65f9f1e51
commit
ea10fc3047
1 changed files with 11 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue