Bug 25327: Regression tests

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
This commit is contained in:
Tomas Cohen Arazi 2020-05-04 15:43:08 -03:00 committed by Aleisha Amohia
parent b3189e3369
commit cd950f6341
1 changed files with 12 additions and 1 deletions

View File

@ -17,7 +17,7 @@
use Modern::Perl;
use Test::More tests => 1;
use Test::More tests => 2;
use Test::Mojo;
use Test::Warn;
@ -107,6 +107,17 @@ subtest 'under() tests' => sub {
$schema->storage->txn_rollback;
};
subtest 'spec retrieval tests' => sub {
plan tests => 4;
$t->get_ok("/api/v1/")
->status_is(200);
$t->get_ok("/api/v1/.html")
->status_is(200);
};
sub create_user_and_session {
my $user = $builder->build(
{