diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index a78545924..e50fb7414 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -6,6 +6,7 @@ - fixed #11345: New Image Asset template does now work well with AssetProxy macro and some layouts - fixed #11344: Badge Builder doesn't allow pagination - fixed #11348: Typ-o in debug notice SQLReport + - fixed #11350: Story Topic asset missing description... 7.8.9 - fixed #11235: wiki search diff --git a/docs/upgrades/packages-7.8.10/root_import_storymanager_storytopic.wgpkg b/docs/upgrades/packages-7.8.10/root_import_storymanager_storytopic.wgpkg new file mode 100644 index 000000000..6286206b2 Binary files /dev/null and b/docs/upgrades/packages-7.8.10/root_import_storymanager_storytopic.wgpkg differ diff --git a/t/Asset/Wobject/StoryTopic.t b/t/Asset/Wobject/StoryTopic.t index acc029932..5b82bf4cf 100644 --- a/t/Asset/Wobject/StoryTopic.t +++ b/t/Asset/Wobject/StoryTopic.t @@ -31,14 +31,12 @@ my $session = WebGUI::Test->session; #---------------------------------------------------------------------------- # Tests -my $tests = 18; -plan tests => 1 + $tests; +plan tests => 18; #---------------------------------------------------------------------------- # put your tests here my $class = 'WebGUI::Asset::Wobject::StoryTopic'; -my $loaded = use_ok($class); my $versionTag = WebGUI::VersionTag->getWorking($session); @@ -72,13 +70,12 @@ STORY: foreach my $name (@characters) { $storyHandler->{bogs}->update({subtitle => 'drinking his food through a straw'}); -my $topic; - -SKIP: { - - skip "Unable to load module $class", $tests unless $loaded; - -$topic = WebGUI::Asset->getDefault($session)->addChild({ className => 'WebGUI::Asset::Wobject::StoryTopic', title => 'Popular inmates in Shawshank Prison', keywords => join(',', @inmates)}); +my $topic = WebGUI::Asset->getDefault($session)->addChild({ + className => 'WebGUI::Asset::Wobject::StoryTopic', + title => 'Popular inmates in Shawshank Prison', + keywords => join(',', @inmates), + description => 'News from Shawshank', +}); isa_ok($topic, 'WebGUI::Asset::Wobject::StoryTopic', 'made a Story Topic'); $topic->update({ @@ -87,6 +84,7 @@ $topic->update({ }); $versionTag->commit; +addToCleanup($versionTag); ################################################################ # @@ -100,8 +98,9 @@ $templateVars = $topic->viewTemplateVariables(); cmp_deeply( $templateVars, superhashof({ - rssUrl => $topic->getRssFeedUrl, - atomUrl => $topic->getAtomFeedUrl, + rssUrl => $topic->getRssFeedUrl, + atomUrl => $topic->getAtomFeedUrl, + description => 'News from Shawshank', }), 'viewTemplateVars: RSS and Atom feed template variables' ); @@ -311,15 +310,3 @@ cmp_deeply( ], 'rssFeedItems' ); - -} - -#---------------------------------------------------------------------------- -# Cleanup -END { - $archive->purge if $archive; - $topic->purge if $topic; - if ($versionTag) { - $versionTag->rollback; - } -}