From aaa2d8e8f29986e9a3c1cc5b75cd88aaa3c4c39c Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 16 May 2011 21:36:27 -0700 Subject: [PATCH] Update shortcut exporting test for changes to exportGetRelatedAssetIds exporting the container by default. --- t/Asset/Shortcut/010-linked-asset.t | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/t/Asset/Shortcut/010-linked-asset.t b/t/Asset/Shortcut/010-linked-asset.t index 58f1c9379..a8cea8e14 100644 --- a/t/Asset/Shortcut/010-linked-asset.t +++ b/t/Asset/Shortcut/010-linked-asset.t @@ -19,8 +19,10 @@ use Scalar::Util qw( blessed ); use WebGUI::Test; use WebGUI::Session; use Test::More; +use Test::Deep; use WebGUI::Asset::Shortcut; use WebGUI::Asset::Snippet; +use Data::Dumper; #---------------------------------------------------------------------------- # Init @@ -54,11 +56,11 @@ is( "Original assetId is correct" ); -is_deeply( - [ $shortcut->getId ], +cmp_bag( $original->exportGetRelatedAssetIds, + [ $shortcut->getId, $node->getId ], 'shortcut is related for the purpose of exports', -); +) or diag Dumper $original->exportGetRelatedAssetIds; #---------------------------------------------------------------------------- # Test trashing snippet trashes shortcut also