Update the test to handle safe (- => _____) listingIds.
This commit is contained in:
parent
0957759fa9
commit
0f475dd013
1 changed files with 7 additions and 5 deletions
|
|
@ -134,6 +134,8 @@ is($matrixListing->get('views'),'1','Views were incremented');
|
|||
# Test getListings
|
||||
|
||||
my $expectedAssetId = $matrixListing->getId;
|
||||
my $safeAssetId = $expectedAssetId;
|
||||
$safeAssetId =~ s/-/_____/;
|
||||
|
||||
my $listings = $matrix->getListings;
|
||||
|
||||
|
|
@ -208,19 +210,19 @@ cmp_deeply(
|
|||
$compareListData,
|
||||
{ResultSet=>{
|
||||
Result=>[
|
||||
{$expectedAssetId=>$matrixListingLastUpdatedHuman,fieldType=>"lastUpdated",name=>"Last Updated"},
|
||||
{fieldType=>"category",name=>"category1",$expectedAssetId=>$matrixListing->get('title').' '},
|
||||
{fieldType=>"category",name=>"category2",$expectedAssetId=>$matrixListing->get('title').' '}
|
||||
{$safeAssetId=>$matrixListingLastUpdatedHuman,fieldType=>"lastUpdated",name=>"Last Updated"},
|
||||
{fieldType=>"category",name=>"category1",$safeAssetId=>$matrixListing->get('title').' '},
|
||||
{fieldType=>"category",name=>"category2",$safeAssetId=>$matrixListing->get('title').' '}
|
||||
]
|
||||
},
|
||||
ColumnDefs=>[{
|
||||
key =>$expectedAssetId,
|
||||
key =>$safeAssetId,
|
||||
label =>$matrixListing->get('title').' '.$matrixListing->get('version'),
|
||||
formatter =>"formatColors",
|
||||
url =>$matrixListing->getUrl,
|
||||
lastUpdated =>$matrixListingLastUpdatedHuman,
|
||||
}],
|
||||
ResponseFields=>["attributeId", "name", "description","fieldType", "checked",$expectedAssetId,$expectedAssetId."_compareColor"]
|
||||
ResponseFields=>["attributeId", "name", "description","fieldType", "checked",$safeAssetId,$safeAssetId."_compareColor"]
|
||||
},
|
||||
'Getting compareListData as JSON'
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue