Skip to content

Commit 2cb7c5b

Browse files
committedJun 5, 2012
Correction on test introduced in fix of bug 12365 commit 7ab4726

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎t/Asset/AssetMetaData.t

+2-1
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,15 @@ subtest 'asset metadata versioning' => sub {
310310
# configured in the config, which may cause a fatal error.
311311

312312
# Temporarily remove asset Article from config
313+
my $article_config = $session->config->get( 'assets' )->{ 'WebGUI::Asset::Wobject::Article' };
313314
$session->config->deleteFromHash( 'assets', 'WebGUI::Asset::Wobject::Article' );
314315
unlike(
315316
my $got = $root->www_editMetaDataField(),
316317
qr/WebGUI::Asset::Wobject::Article/,
317318
'article was (temporarily) not in config and should not appear in form'
318319
);
319320
# Restore config:
320-
$session->config->addToHash( 'assets', 'WebGUI::Asset::Wobject::Article' );
321+
$session->config->addToHash( 'assets', 'WebGUI::Asset::Wobject::Article', $article_config );
321322

322323

323324
sub buildNameIndex {

0 commit comments

Comments
 (0)
Please sign in to comment.