From 4df94f96ae9afa6df4b26c8b5c43f724dd6ea195 Mon Sep 17 00:00:00 2001 From: Maxime Besson Date: Tue, 23 Nov 2021 12:02:17 +0100 Subject: [PATCH] Unit test for #2661 --- lemonldap-ng-portal/t/65-CheckState.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lemonldap-ng-portal/t/65-CheckState.t b/lemonldap-ng-portal/t/65-CheckState.t index e399a30fb..bb13acc28 100644 --- a/lemonldap-ng-portal/t/65-CheckState.t +++ b/lemonldap-ng-portal/t/65-CheckState.t @@ -1,4 +1,5 @@ use Test::More; +use Lemonldap::NG::Portal; use strict; require 't/test-lib.pm'; @@ -55,6 +56,11 @@ ok( ); my $j = expectJSON($res); is( $j->{result}, 1, "response has a result key with value 1" ); +is( + $j->{version}, + $Lemonldap::NG::Portal::VERSION, + "response version is correct" +); ok( $res = $client->_get(