Skip to content
Permalink
Browse files

Correction on test introduced in fix of bug 12365 commit 7ab4726

  • Loading branch information...
arjancwidlak committed Jun 5, 2012
1 parent 5dfe488 commit 2cb7c5b85b10cabb36e5eec04fb04a6fe53394eb
Showing with 2 additions and 1 deletion.
  1. +2 −1 t/Asset/AssetMetaData.t
@@ -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 {

0 comments on commit 2cb7c5b

Please sign in to comment.
You can’t perform that action at this time.