File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -310,14 +310,15 @@ subtest 'asset metadata versioning' => sub {
310
310
# configured in the config, which may cause a fatal error.
311
311
312
312
# Temporarily remove asset Article from config
313
+ my $article_config = $session -> config-> get( ' assets' )-> { ' WebGUI::Asset::Wobject::Article' };
313
314
$session -> config-> deleteFromHash( ' assets' , ' WebGUI::Asset::Wobject::Article' );
314
315
unlike(
315
316
my $got = $root -> www_editMetaDataField(),
316
317
qr / WebGUI::Asset::Wobject::Article/ ,
317
318
' article was (temporarily) not in config and should not appear in form'
318
319
);
319
320
# Restore config:
320
- $session -> config-> addToHash( ' assets' , ' WebGUI::Asset::Wobject::Article' );
321
+ $session -> config-> addToHash( ' assets' , ' WebGUI::Asset::Wobject::Article' , $article_config );
321
322
322
323
323
324
sub buildNameIndex {
You can’t perform that action at this time.
0 commit comments