Correction on test introduced in fix of bug 12365 commit 7ab4726600
This commit is contained in:
parent
5dfe488ac8
commit
2cb7c5b85b
1 changed files with 2 additions and 1 deletions
|
|
@ -310,6 +310,7 @@ subtest 'asset metadata versioning' => sub {
|
||||||
# configured in the config, which may cause a fatal error.
|
# configured in the config, which may cause a fatal error.
|
||||||
|
|
||||||
# Temporarily remove asset Article from config
|
# Temporarily remove asset Article from config
|
||||||
|
my $article_config = $session->config->get( 'assets' )->{ 'WebGUI::Asset::Wobject::Article' };
|
||||||
$session->config->deleteFromHash( 'assets', 'WebGUI::Asset::Wobject::Article' );
|
$session->config->deleteFromHash( 'assets', 'WebGUI::Asset::Wobject::Article' );
|
||||||
unlike(
|
unlike(
|
||||||
my $got = $root->www_editMetaDataField(),
|
my $got = $root->www_editMetaDataField(),
|
||||||
|
|
@ -317,7 +318,7 @@ unlike(
|
||||||
'article was (temporarily) not in config and should not appear in form'
|
'article was (temporarily) not in config and should not appear in form'
|
||||||
);
|
);
|
||||||
# Restore config:
|
# Restore config:
|
||||||
$session->config->addToHash( 'assets', 'WebGUI::Asset::Wobject::Article' );
|
$session->config->addToHash( 'assets', 'WebGUI::Asset::Wobject::Article', $article_config );
|
||||||
|
|
||||||
|
|
||||||
sub buildNameIndex {
|
sub buildNameIndex {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue