Bug 9838: fix on 04patron_status.t
authorAdrien Saurat <adrien.saurat@biblibre.com>
Mon, 18 Mar 2013 16:41:42 +0000 (17:41 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 2 Apr 2013 12:30:21 +0000 (08:30 -0400)
Some patron infos were hard coded instead
of using the variables defined in SIPtest.pm

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/SIP/t/04patron_status.t

index 03ca59b..f0dc71e 100644 (file)
@@ -17,10 +17,10 @@ my $patron_status_test_template = {
               $SIPtest::field_specs{(FID_SCREEN_MSG)},
               $SIPtest::field_specs{(FID_PRINT_LINE)},
               { field    => FID_PATRON_ID,
-                pat      => qr/^23529001000463$/,
+                pat      => qr/^$user_barcode$/,
                 required => 1, },
               { field    => FID_PERSONAL_NAME,
-                pat      => qr/^Edna Acosta$/,
+                pat      => qr/^$user_fullname$/,
                 required => 1, },
               { field    => FID_VALID_PATRON,
                 pat      => qr/^Y$/,
@@ -76,10 +76,10 @@ $test->{fields} = [
                 $SIPtest::field_specs{(FID_SCREEN_MSG)},
                 $SIPtest::field_specs{(FID_PRINT_LINE)},
                 { field    => FID_PATRON_ID,
-                  pat      => qr/^23529001000463$/,
+                  pat      => qr/^$user_barcode$/,
                   required => 1, },
                 { field    => FID_PERSONAL_NAME,
-                  pat      => qr/^Edna Acosta$/,
+                  pat      => qr/^$user_fullname$/,
                   required => 1, },
                 { field    => FID_VALID_PATRON,
                   pat      => qr/^Y$/,