side porting over new Asset get test from HEAD
This commit is contained in:
parent
99aeed0736
commit
3fa331ac4c
1 changed files with 14 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ $canViewMaker->prepare(
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
plan tests => 88
|
plan tests => 89
|
||||||
+ scalar(@fixIdTests)
|
+ scalar(@fixIdTests)
|
||||||
+ scalar(@fixTitleTests)
|
+ scalar(@fixTitleTests)
|
||||||
+ 2*scalar(@getTitleTests) #same tests used for getTitle and getMenuTitle
|
+ 2*scalar(@getTitleTests) #same tests used for getTitle and getMenuTitle
|
||||||
|
|
@ -688,6 +688,19 @@ $session->setting->set('notFoundPage', $origNotFoundPage);
|
||||||
################################################################
|
################################################################
|
||||||
is($rootAsset->get('isExportable'), 1, 'isExportable exists, defaults to 1');
|
is($rootAsset->get('isExportable'), 1, 'isExportable exists, defaults to 1');
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
#
|
||||||
|
# get
|
||||||
|
#
|
||||||
|
################################################################
|
||||||
|
my $assetProps = $rootAsset->get();
|
||||||
|
my $funkyTitle = q{Miss Annie's Whoopie Emporium and Sasparilla Shop};
|
||||||
|
diag $assetProps->{title};
|
||||||
|
$assetProps->{title} = $funkyTitle;
|
||||||
|
diag $assetProps->{title};
|
||||||
|
|
||||||
|
isnt( $rootAsset->get('title'), $funkyTitle, 'get returns a safe copy of the Asset properties');
|
||||||
|
|
||||||
END: {
|
END: {
|
||||||
$session->config->set( 'extrasURL', $origExtras);
|
$session->config->set( 'extrasURL', $origExtras);
|
||||||
$session->config->set( 'uploadsURL', $origUploads);
|
$session->config->set( 'uploadsURL', $origUploads);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue