From fcdf80923791c9b44e4c196c95b64ad10c64dbd4 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Mon, 7 Jul 2014 16:51:31 +0200 Subject: [PATCH] MT#7747 Adapt tests to latest change. --- t/api-billingfees.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/api-billingfees.t b/t/api-billingfees.t index c7fa9d9753..c16855ed9b 100644 --- a/t/api-billingfees.t +++ b/t/api-billingfees.t @@ -120,7 +120,7 @@ my @allfees = (); is($res->code, 422, "create profile without billing_profile_id"); my $err = JSON::from_json($res->decoded_content); is($err->{code}, "422", "check error code in body"); - ok($err->{message} =~ /Invalid 'billing_profile_id'/, "check error message in body"); + ok($err->{message} =~ /Missing parameter 'billing_profile_id'/, "check error message in body"); # try to create fee with invalid billing_profile_id $req = HTTP::Request->new('POST', $uri.'/api/billingfees/'); @@ -166,7 +166,7 @@ my @allfees = (); is($res->code, 422, "create profile without billing_zone_id"); $err = JSON::from_json($res->decoded_content); is($err->{code}, "422", "check error code in body"); - ok($err->{message} =~ /field='billing_zone_id'/, "check error message in body"); + ok($err->{message} =~ /Invalid 'billing_zone_id'/, "check error message in body"); # try to create fee with invalid billing_zone_id $req = HTTP::Request->new('POST', $uri.'/api/billingfees/');