diff --git a/t/Asset/AssetMetaData.t b/t/Asset/AssetMetaData.t index c246b91cb..a12c7c07e 100644 --- a/t/Asset/AssetMetaData.t +++ b/t/Asset/AssetMetaData.t @@ -67,6 +67,7 @@ cmp_deeply( \@snipKeys, \@foldKeys, 'Snippet and Folder have access to the same my $seMetaData = $snippet->getMetaDataFields()->{$snipKeys[0]}; +##Add a second field, this time to the folder. $folder->addMetaDataField('new', 'color', '', 'Favorite Color', 'radioList', "Blue\nRed\nWhite\nYellow\nGreen"); @snipKeys = keys %{ $snippet->getMetaDataFields }; diff --git a/t/Session.t b/t/Session.t index efc8f4377..f97ceb6ca 100644 --- a/t/Session.t +++ b/t/Session.t @@ -19,7 +19,7 @@ use WebGUI::User; use Test::More; -plan tests => 3; # increment this value for each test you create +plan tests => 4; # increment this value for each test you create my $session = WebGUI::Test->session; @@ -32,6 +32,7 @@ my ($userId) = $session->db->quickArray("select userId from userSession where se is($userId, $user->userId, 'changing session user changes sessionId inside userSession table'); $session->user({userId => 3}); +is($session->user->userId, 3, 'Set session user to Admin, check userId==3'); is($session->user->profileField('uiLevel'), 9, 'Set session user to Admin, check uiLevel==9'); ################################################################