From d881a82fc3ecbc2d5cb66281e42ff986013ccdee Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 21 Aug 2008 20:44:33 +0000 Subject: [PATCH] fixing tests --- t/Asset/AssetMetaData.t | 4 ++++ t/Session/ErrorHandler.t | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/t/Asset/AssetMetaData.t b/t/Asset/AssetMetaData.t index b263d9ad1..b09e7b7c4 100644 --- a/t/Asset/AssetMetaData.t +++ b/t/Asset/AssetMetaData.t @@ -195,6 +195,9 @@ cmp_deeply( # #################################################### +my $origMetaEnabled = $session->setting->get("metaDataEnabled"); +$session->setting->set("metaDataEnabled", 1); + # add another field for comparison $folder->addMetaDataField('new', 'book', '', 'Favorite book', 'radioList', "1984\nDune\nLord of the Rings\nFoundation Trilogy"); @@ -233,5 +236,6 @@ END { $tag->rollback; } } + $session->setting->set("metaDataEnabled", $origMetaEnabled); } diff --git a/t/Session/ErrorHandler.t b/t/Session/ErrorHandler.t index e50095d8e..cf60f78f2 100644 --- a/t/Session/ErrorHandler.t +++ b/t/Session/ErrorHandler.t @@ -101,7 +101,7 @@ is($WebGUI::Test::logger_debug, "query $queryCount:\n select more", "query: Log $eh->query('select many', [1, 2]); ++$queryCount; -is($WebGUI::Test::logger_debug, "query $queryCount:\n select many\n with placeholders: ['1', '2']", "query: Log4perl called debug via query, empty placeholder"); +is($WebGUI::Test::logger_debug, "query $queryCount:\n select many\n with placeholders: [1,2]", "query: Log4perl called debug via query, empty placeholder"); #################################################### #