This commit is contained in:
Rumperuu 2021-03-20 23:26:52 +00:00
parent bec21ff3e0
commit a0dd7dd174
46 changed files with 138 additions and 139 deletions

View file

@ -14,7 +14,7 @@ sub BUILD {
or die "you need Test::PostgreSQL to run PG testing";
Test::PostgreSQL->import;
}
return 1;
}
@ -25,7 +25,7 @@ sub DEMOLISH {
$self->mojo->app->schema->storage->dbh->disconnect;
$self->pg->stop;
}
return 1;
}
@ -145,7 +145,7 @@ sub register_customer {
$self->framework->post_ok( '/api/register' => json => $json )
->status_is(200)->or( $self->dump_error )
->json_is( '/success', Mojo::JSON->true )->or( $self->dump_error );
return 1;
}
@ -157,7 +157,7 @@ sub register_organisation {
$self->framework->post_ok( '/api/register' => json => $args )
->status_is(200)->or( $self->dump_error )
->json_is( '/success', Mojo::JSON->true )->or( $self->dump_error );
return 1;
}
@ -180,7 +180,7 @@ sub logout {
'/api/logout' => json => { session_key => $session_key } )
->status_is(200)->json_is( '/success', Mojo::JSON->true )
->json_like( '/message', qr/Logged Out/ );
return 1;
}
@ -251,7 +251,7 @@ sub install_fixtures {
}
);
}
return 1;
}