From db0d709b92d157661a1a068a79a00a283b9af9f6 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 8 Apr 2009 16:58:08 +0000 Subject: [PATCH] Update StoryArchive test for new Keywords CSV. --- t/Asset/Wobject/StoryArchive.t | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/t/Asset/Wobject/StoryArchive.t b/t/Asset/Wobject/StoryArchive.t index 51418c706..332dc4c74 100644 --- a/t/Asset/Wobject/StoryArchive.t +++ b/t/Asset/Wobject/StoryArchive.t @@ -73,6 +73,8 @@ my $loaded = use_ok($class); my $storage; my $versionTag; +my $creationDateSth = $session->db->prepare('update asset set creationDate=? where assetId=?'); + SKIP: { skip "Unable to load module $class", $tests unless $loaded; @@ -168,9 +170,7 @@ my $newFolder = $archive->getFolder($yesterday); my ($wgBdayMorn,undef) = $session->datetime->dayStartEnd($wgBday); my ($yesterdayMorn,undef) = $session->datetime->dayStartEnd($yesterday); -my $creationDateSth = $session->db->prepare('update asset set creationDate=? where assetId=?'); - -my $story = $oldFolder->addChild({ className => 'WebGUI::Asset::Story', title => 'WebGUI is released', keywords => 'roger foxtrot echo'}); +my $story = $oldFolder->addChild({ className => 'WebGUI::Asset::Story', title => 'WebGUI is released', keywords => 'roger,foxtrot,echo'}); $creationDateSth->execute([$wgBday, $story->getId]); { @@ -224,9 +224,9 @@ cmp_deeply( 'viewTemplateVariables: returns expected template variables with 3 stories in different folders' ); -my $story2 = $folder->addChild({ className => 'WebGUI::Asset::Story', title => 'Story 2', keywords => "roger foxtrot"}); -my $story3 = $folder->addChild({ className => 'WebGUI::Asset::Story', title => 'Story 3', keywords => "foxtrot echo"}); -my $story4 = $folder->addChild({ className => 'WebGUI::Asset::Story', title => 'Story 4', keywords => "roger echo"}); +my $story2 = $folder->addChild({ className => 'WebGUI::Asset::Story', title => 'Story 2', keywords => "roger,foxtrot"}); +my $story3 = $folder->addChild({ className => 'WebGUI::Asset::Story', title => 'Story 3', keywords => "foxtrot,echo"}); +my $story4 = $folder->addChild({ className => 'WebGUI::Asset::Story', title => 'Story 4', keywords => "roger,echo"}); foreach my $storilet ($story2, $story3, $story4) { $session->db->write("update asset set creationDate=$now where assetId=?",[$storilet->getId]); }