From 59c559354f33ad5984d38581333ea53ad5705545 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 13 May 2009 03:17:42 +0000 Subject: [PATCH] Update test to make getListings work. It used the defaultSort value, which was set to an invalid column. --- t/Asset/Wobject/Matrix.t | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/t/Asset/Wobject/Matrix.t b/t/Asset/Wobject/Matrix.t index 844d681b0..eeee69279 100644 --- a/t/Asset/Wobject/Matrix.t +++ b/t/Asset/Wobject/Matrix.t @@ -37,7 +37,7 @@ isa_ok($matrix, 'WebGUI::Asset::Wobject::Matrix'); # Test to see if we can set new values my $newMatrixSettings = { maxComparisons => 20, - defaultSort => 'assetRank', + defaultSort => 'lineage', compareColorNo => '#aaffaa', submissionApprovalWorkflowId => 'pbworkflow000000000005', categories => "category1\ncategory2", @@ -79,8 +79,7 @@ my $isValidId = $session->id->valid($newAttributeId); is($isValidId,1,"editAttributeSave returnes a valid guid"); is($newAttribute->{name},'test attribute',"Adding a new attribute, attribute name was set correctly"); -is($newAttribute->{fieldType},'MatrixCompare',"Adding a new attribute, undefined fieldType was set correctly to -default value"); +is($newAttribute->{fieldType},'MatrixCompare',"Adding a new attribute, undefined fieldType was set correctly to default value"); # delete new attribute