Update shortcut exporting test for changes to exportGetRelatedAssetIds exporting the container by default.
This commit is contained in:
parent
d796412469
commit
aaa2d8e8f2
1 changed files with 5 additions and 3 deletions
|
|
@ -19,8 +19,10 @@ use Scalar::Util qw( blessed );
|
||||||
use WebGUI::Test;
|
use WebGUI::Test;
|
||||||
use WebGUI::Session;
|
use WebGUI::Session;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
use Test::Deep;
|
||||||
use WebGUI::Asset::Shortcut;
|
use WebGUI::Asset::Shortcut;
|
||||||
use WebGUI::Asset::Snippet;
|
use WebGUI::Asset::Snippet;
|
||||||
|
use Data::Dumper;
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Init
|
# Init
|
||||||
|
|
@ -54,11 +56,11 @@ is(
|
||||||
"Original assetId is correct"
|
"Original assetId is correct"
|
||||||
);
|
);
|
||||||
|
|
||||||
is_deeply(
|
cmp_bag(
|
||||||
[ $shortcut->getId ],
|
|
||||||
$original->exportGetRelatedAssetIds,
|
$original->exportGetRelatedAssetIds,
|
||||||
|
[ $shortcut->getId, $node->getId ],
|
||||||
'shortcut is related for the purpose of exports',
|
'shortcut is related for the purpose of exports',
|
||||||
);
|
) or diag Dumper $original->exportGetRelatedAssetIds;
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Test trashing snippet trashes shortcut also
|
# Test trashing snippet trashes shortcut also
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue