summaryrefslogtreecommitdiff
path: root/t/02-registration.t
diff options
context:
space:
mode:
Diffstat (limited to 't/02-registration.t')
-rw-r--r--t/02-registration.t9
1 files changed, 5 insertions, 4 deletions
diff --git a/t/02-registration.t b/t/02-registration.t
index cd2201a..799022f 100644
--- a/t/02-registration.t
+++ b/t/02-registration.t
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-# Copyright (C) 2020 Daniel Friesel <daniel.friesel@uos.de>
+# Copyright (C) 2020 Birte Kristina Friesel <derf@finalrewind.org>
#
# SPDX-License-Identifier: MIT
@@ -33,6 +33,7 @@ $t->app->pg->on(
$t->app->config->{mail}->{disabled} = 1;
+$ENV{__TRAVELYNX_TEST_MINI_IRIS} = 1;
$t->app->start( 'database', 'migrate' );
my $csrf_token
@@ -62,7 +63,7 @@ $t->post_ok(
password2 => 'foofoofoo',
}
);
-$t->status_is(200)->content_like(qr{CSRF});
+$t->status_is(400)->content_like(qr{CSRF});
# Failed registration (user name not available)
$t->post_ok(
@@ -88,7 +89,7 @@ $t->post_ok(
password => 'foofoofoo',
}
);
-$t->status_is(200)->content_like(qr{nicht freigeschaltet});
+$t->status_is(400)->content_like(qr{nicht freigeschaltet});
my $res = $t->app->pg->db->select( 'users', ['id'], { name => 'someone' } );
my $uid = $res->hash->{id};
@@ -108,7 +109,7 @@ $t->post_ok(
password => 'definitely invalid',
}
);
-$t->status_is(200)->content_like(qr{falsches Passwort});
+$t->status_is(400)->content_like(qr{falsches Passwort});
# Successful login
$t->post_ok(