Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correction on test introduced in fix of bug 12365 commit 7ab4726
  • Loading branch information
arjancwidlak committed Jun 5, 2012
1 parent 5dfe488 commit 2cb7c5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/Asset/AssetMetaData.t
Expand Up @@ -310,14 +310,15 @@ subtest 'asset metadata versioning' => sub {
# configured in the config, which may cause a fatal error.

# 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' );
unlike(
my $got = $root->www_editMetaDataField(),
qr/WebGUI::Asset::Wobject::Article/,
'article was (temporarily) not in config and should not appear in form'
);
# Restore config:
$session->config->addToHash( 'assets', 'WebGUI::Asset::Wobject::Article' );
$session->config->addToHash( 'assets', 'WebGUI::Asset::Wobject::Article', $article_config );


sub buildNameIndex {
Expand Down

0 comments on commit 2cb7c5b

Please sign in to comment.