diff --git a/Web/t/00_load.t b/Web/t/00_load.t new file mode 100644 index 0000000..04940b2 --- /dev/null +++ b/Web/t/00_load.t @@ -0,0 +1,23 @@ +#!/usr/bin/env perl +use warnings; +use strict; +use Test::More; +use File::Find; + +my @NO_TEST = ( qw( ) ); + +find( + sub { + return unless $_ =~ /\.pm$/; + my $module = $File::Find::name; + + $module =~ s/\.pm//; + $module =~ s/lib\///; + $module =~ s/\//::/g; + + next if grep { $_ eq $module } @NO_TEST; + use_ok( $module ); + }, 'lib' +); + +done_testing(); diff --git a/Web/t/01_endpoints/01_admin/01_index.t b/Web/t/01_endpoints/01_admin/01_index.t index 7e9e9c9..4e90170 100644 --- a/Web/t/01_endpoints/01_admin/01_index.t +++ b/Web/t/01_endpoints/01_admin/01_index.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that the admin index page works as expected. # diff --git a/Web/t/01_endpoints/01_admin/02_do_admin_become/01_anon_to_user.t b/Web/t/01_endpoints/01_admin/02_do_admin_become/01_anon_to_user.t index 35079ae..1786331 100644 --- a/Web/t/01_endpoints/01_admin/02_do_admin_become/01_anon_to_user.t +++ b/Web/t/01_endpoints/01_admin/02_do_admin_become/01_anon_to_user.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that an anonymouse user may not use the # admin become functionality. diff --git a/Web/t/01_endpoints/01_admin/02_do_admin_become/02_user_to_user.t b/Web/t/01_endpoints/01_admin/02_do_admin_become/02_user_to_user.t index e6a84de..d9130e8 100644 --- a/Web/t/01_endpoints/01_admin/02_do_admin_become/02_user_to_user.t +++ b/Web/t/01_endpoints/01_admin/02_do_admin_become/02_user_to_user.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a regular user cannot use the admin become functionality. # diff --git a/Web/t/01_endpoints/01_admin/02_do_admin_become/03_admin_to_user.t b/Web/t/01_endpoints/01_admin/02_do_admin_become/03_admin_to_user.t index e9746e5..71566dc 100644 --- a/Web/t/01_endpoints/01_admin/02_do_admin_become/03_admin_to_user.t +++ b/Web/t/01_endpoints/01_admin/02_do_admin_become/03_admin_to_user.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test confirms that an admin can login to a user account through the # admin become functionality. diff --git a/Web/t/01_endpoints/01_admin/02_do_admin_become/04_admin_to_user_blog.t b/Web/t/01_endpoints/01_admin/02_do_admin_become/04_admin_to_user_blog.t index b562f24..c871377 100644 --- a/Web/t/01_endpoints/01_admin/02_do_admin_become/04_admin_to_user_blog.t +++ b/Web/t/01_endpoints/01_admin/02_do_admin_become/04_admin_to_user_blog.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test confirms that an admin can login to a user account through the # admin become functionality. diff --git a/Web/t/01_endpoints/01_admin/03_people.t b/Web/t/01_endpoints/01_admin/03_people.t index b019b9a..209407f 100644 --- a/Web/t/01_endpoints/01_admin/03_people.t +++ b/Web/t/01_endpoints/01_admin/03_people.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that people panel can be seen by admins, but not # normal or anonymouse users. diff --git a/Web/t/01_endpoints/01_admin/04_person.t b/Web/t/01_endpoints/01_admin/04_person.t index aee77e5..72e8272 100644 --- a/Web/t/01_endpoints/01_admin/04_person.t +++ b/Web/t/01_endpoints/01_admin/04_person.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that person panel can be seen by admins, but not # normal or anonymouse users. diff --git a/Web/t/01_endpoints/01_admin/05_do_person_note.t b/Web/t/01_endpoints/01_admin/05_do_person_note.t index 78be514..367f429 100644 --- a/Web/t/01_endpoints/01_admin/05_do_person_note.t +++ b/Web/t/01_endpoints/01_admin/05_do_person_note.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that notes can be added to a user's account. #== diff --git a/Web/t/01_endpoints/01_admin/06_blogs.t b/Web/t/01_endpoints/01_admin/06_blogs.t index a5bb9ae..735cd1c 100644 --- a/Web/t/01_endpoints/01_admin/06_blogs.t +++ b/Web/t/01_endpoints/01_admin/06_blogs.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This file tests to make sure that the admin blog page has the correct access # rights and that there is an arrayref for blogs in the stash. diff --git a/Web/t/01_endpoints/01_admin/07_invites.t b/Web/t/01_endpoints/01_admin/07_invites.t index 70a73be..bafa3b3 100644 --- a/Web/t/01_endpoints/01_admin/07_invites.t +++ b/Web/t/01_endpoints/01_admin/07_invites.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that invite codes panel can be seen by admins, but not # normal users or anonymouse users. diff --git a/Web/t/01_endpoints/01_admin/08_do_invite.t b/Web/t/01_endpoints/01_admin/08_do_invite.t index 883b124..71afd76 100644 --- a/Web/t/01_endpoints/01_admin/08_do_invite.t +++ b/Web/t/01_endpoints/01_admin/08_do_invite.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that invite codes can be added through the admin panel. # diff --git a/Web/t/01_endpoints/01_admin/09_do_invite_remove.t b/Web/t/01_endpoints/01_admin/09_do_invite_remove.t index 791c596..da9f066 100644 --- a/Web/t/01_endpoints/01_admin/09_do_invite_remove.t +++ b/Web/t/01_endpoints/01_admin/09_do_invite_remove.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that invite codes can be removed through the admin panel. # diff --git a/Web/t/01_endpoints/01_admin/10_servers.t b/Web/t/01_endpoints/01_admin/10_servers.t index d32f44e..3fbc567 100644 --- a/Web/t/01_endpoints/01_admin/10_servers.t +++ b/Web/t/01_endpoints/01_admin/10_servers.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that the /admin/servers page has the correct permissions # and has a server array in the stash. diff --git a/Web/t/01_endpoints/01_admin/11_do_server.t b/Web/t/01_endpoints/01_admin/11_do_server.t index d4e6a28..8db77aa 100644 --- a/Web/t/01_endpoints/01_admin/11_do_server.t +++ b/Web/t/01_endpoints/01_admin/11_do_server.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that servers can be added through the admin panel. # diff --git a/Web/t/01_endpoints/01_admin/12_do_server_remove.t b/Web/t/01_endpoints/01_admin/12_do_server_remove.t index 8da2acf..3d04e14 100644 --- a/Web/t/01_endpoints/01_admin/12_do_server_remove.t +++ b/Web/t/01_endpoints/01_admin/12_do_server_remove.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that servers can be removed through the admin panel. # diff --git a/Web/t/01_endpoints/01_admin/13_domains.t b/Web/t/01_endpoints/01_admin/13_domains.t index e06fce9..05a6544 100644 --- a/Web/t/01_endpoints/01_admin/13_domains.t +++ b/Web/t/01_endpoints/01_admin/13_domains.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that the /admin/domains page displays domains. # diff --git a/Web/t/01_endpoints/01_admin/14_do_domain.t b/Web/t/01_endpoints/01_admin/14_do_domain.t index 7ce806a..5f1f71a 100644 --- a/Web/t/01_endpoints/01_admin/14_do_domain.t +++ b/Web/t/01_endpoints/01_admin/14_do_domain.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that domains can be added through the admin panel. # diff --git a/Web/t/01_endpoints/01_admin/15_do_domain_remove.t b/Web/t/01_endpoints/01_admin/15_do_domain_remove.t index 24446ab..ff30a9f 100644 --- a/Web/t/01_endpoints/01_admin/15_do_domain_remove.t +++ b/Web/t/01_endpoints/01_admin/15_do_domain_remove.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that domains can be removed through the admin panel. # diff --git a/Web/t/01_endpoints/01_admin/16_alerts.t b/Web/t/01_endpoints/01_admin/16_alerts.t index e88e300..086e334 100644 --- a/Web/t/01_endpoints/01_admin/16_alerts.t +++ b/Web/t/01_endpoints/01_admin/16_alerts.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that the /admin/alerts page displays alerts. # diff --git a/Web/t/01_endpoints/01_admin/17_do_alert_read.t b/Web/t/01_endpoints/01_admin/17_do_alert_read.t index 947d22c..0346d6d 100644 --- a/Web/t/01_endpoints/01_admin/17_do_alert_read.t +++ b/Web/t/01_endpoints/01_admin/17_do_alert_read.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that we can mark alerts as read. # diff --git a/Web/t/01_endpoints/01_admin/18_do_alert_unread.t b/Web/t/01_endpoints/01_admin/18_do_alert_unread.t index 366a5a9..e7c81aa 100644 --- a/Web/t/01_endpoints/01_admin/18_do_alert_unread.t +++ b/Web/t/01_endpoints/01_admin/18_do_alert_unread.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that we can mark alerts as unread. # diff --git a/Web/t/01_endpoints/01_admin/19_do_alert_remove.t b/Web/t/01_endpoints/01_admin/19_do_alert_remove.t index 76f808c..d9deff1 100644 --- a/Web/t/01_endpoints/01_admin/19_do_alert_remove.t +++ b/Web/t/01_endpoints/01_admin/19_do_alert_remove.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that we can remove alerts. # diff --git a/Web/t/01_endpoints/02_auth/01_register.t b/Web/t/01_endpoints/02_auth/01_register.t index 62e8331..f29006b 100644 --- a/Web/t/01_endpoints/02_auth/01_register.t +++ b/Web/t/01_endpoints/02_auth/01_register.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that the open registration redirect system works as expected. # diff --git a/Web/t/01_endpoints/02_auth/02_register_open.t b/Web/t/01_endpoints/02_auth/02_register_open.t index 89b42a2..e636639 100644 --- a/Web/t/01_endpoints/02_auth/02_register_open.t +++ b/Web/t/01_endpoints/02_auth/02_register_open.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that the open registration system works as expected. # diff --git a/Web/t/01_endpoints/02_auth/03_do_register_open.t b/Web/t/01_endpoints/02_auth/03_do_register_open.t index c24833d..fcb1e3a 100644 --- a/Web/t/01_endpoints/02_auth/03_do_register_open.t +++ b/Web/t/01_endpoints/02_auth/03_do_register_open.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that the open registration system works as expected. # diff --git a/Web/t/01_endpoints/02_auth/04_register_invite.t b/Web/t/01_endpoints/02_auth/04_register_invite.t index 7227a10..1476316 100644 --- a/Web/t/01_endpoints/02_auth/04_register_invite.t +++ b/Web/t/01_endpoints/02_auth/04_register_invite.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that the invite registration system works as expected. # diff --git a/Web/t/01_endpoints/02_auth/05_do_register_invite.t b/Web/t/01_endpoints/02_auth/05_do_register_invite.t index 8f7f5e0..d62362d 100644 --- a/Web/t/01_endpoints/02_auth/05_do_register_invite.t +++ b/Web/t/01_endpoints/02_auth/05_do_register_invite.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test file ensures that the invite registration system works as expected. # diff --git a/Web/t/01_endpoints/02_auth/06_login.t b/Web/t/01_endpoints/02_auth/06_login.t index 7b24fb9..e17b2e3 100644 --- a/Web/t/01_endpoints/02_auth/06_login.t +++ b/Web/t/01_endpoints/02_auth/06_login.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + my $t = Test::Mojo::MJB->new('MJB::Web'); ## diff --git a/Web/t/01_endpoints/02_auth/07_do_login.t b/Web/t/01_endpoints/02_auth/07_do_login.t index ba9309b..8d6c73d 100644 --- a/Web/t/01_endpoints/02_auth/07_do_login.t +++ b/Web/t/01_endpoints/02_auth/07_do_login.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that login works. # diff --git a/Web/t/01_endpoints/02_auth/08_do_logout.t b/Web/t/01_endpoints/02_auth/08_do_logout.t index 8280727..63fddb7 100644 --- a/Web/t/01_endpoints/02_auth/08_do_logout.t +++ b/Web/t/01_endpoints/02_auth/08_do_logout.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that logout works. # diff --git a/Web/t/01_endpoints/02_auth/09_forgot.t b/Web/t/01_endpoints/02_auth/09_forgot.t index e32cc87..ddce244 100644 --- a/Web/t/01_endpoints/02_auth/09_forgot.t +++ b/Web/t/01_endpoints/02_auth/09_forgot.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + my $t = Test::Mojo::MJB->new('MJB::Web'); #== diff --git a/Web/t/01_endpoints/02_auth/10_do_forgot.t b/Web/t/01_endpoints/02_auth/10_do_forgot.t index 58bdd0c..5737c8a 100644 --- a/Web/t/01_endpoints/02_auth/10_do_forgot.t +++ b/Web/t/01_endpoints/02_auth/10_do_forgot.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the forgot password controller works correctly. # diff --git a/Web/t/01_endpoints/02_auth/11_reset.t b/Web/t/01_endpoints/02_auth/11_reset.t index 847ca88..8e30690 100644 --- a/Web/t/01_endpoints/02_auth/11_reset.t +++ b/Web/t/01_endpoints/02_auth/11_reset.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the reset password controller works correctly. # diff --git a/Web/t/01_endpoints/02_auth/12_do_reset.t b/Web/t/01_endpoints/02_auth/12_do_reset.t index 9b826c1..4dee0a9 100644 --- a/Web/t/01_endpoints/02_auth/12_do_reset.t +++ b/Web/t/01_endpoints/02_auth/12_do_reset.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the forgot password controller works correctly. # diff --git a/Web/t/01_endpoints/03_blog/01_index.t b/Web/t/01_endpoints/03_blog/01_index.t index 314e583..7378102 100644 --- a/Web/t/01_endpoints/03_blog/01_index.t +++ b/Web/t/01_endpoints/03_blog/01_index.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # Test to ensure that the blog index page redirects to the page for # creating the blog on a hosted page. diff --git a/Web/t/01_endpoints/03_blog/02_domain_hosted.t b/Web/t/01_endpoints/03_blog/02_domain_hosted.t index 52a0be5..5d59743 100644 --- a/Web/t/01_endpoints/03_blog/02_domain_hosted.t +++ b/Web/t/01_endpoints/03_blog/02_domain_hosted.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # Ensure that the route for creating a blog on a hosted domain behaves # as expected. Anonymouse users should be dismissed to the login page. diff --git a/Web/t/01_endpoints/03_blog/03_domain_owned.t b/Web/t/01_endpoints/03_blog/03_domain_owned.t index 1fdd424..4660c9e 100644 --- a/Web/t/01_endpoints/03_blog/03_domain_owned.t +++ b/Web/t/01_endpoints/03_blog/03_domain_owned.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # Ensure that the route for creating a blog on an owned domain behaves # as expected. Anonymouse users should be dismissed to the login page. diff --git a/Web/t/01_endpoints/03_blog/04_do_domain/01_with_owned_domain.t b/Web/t/01_endpoints/03_blog/04_do_domain/01_with_owned_domain.t index bdec646..b97b1b6 100644 --- a/Web/t/01_endpoints/03_blog/04_do_domain/01_with_owned_domain.t +++ b/Web/t/01_endpoints/03_blog/04_do_domain/01_with_owned_domain.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog can be created with an owned domain. # diff --git a/Web/t/01_endpoints/03_blog/04_do_domain/02_with_hosted_domain.t b/Web/t/01_endpoints/03_blog/04_do_domain/02_with_hosted_domain.t index e7af1a0..ef04712 100644 --- a/Web/t/01_endpoints/03_blog/04_do_domain/02_with_hosted_domain.t +++ b/Web/t/01_endpoints/03_blog/04_do_domain/02_with_hosted_domain.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog can be created with a hosted domain. # diff --git a/Web/t/01_endpoints/03_blog/05_settings.t b/Web/t/01_endpoints/03_blog/05_settings.t index b29cc49..2b186e5 100644 --- a/Web/t/01_endpoints/03_blog/05_settings.t +++ b/Web/t/01_endpoints/03_blog/05_settings.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the settings setup page exists after a blog # is created and can be accessed. diff --git a/Web/t/01_endpoints/03_blog/06_do_settings.t b/Web/t/01_endpoints/03_blog/06_do_settings.t index c9c2116..1459ce3 100644 --- a/Web/t/01_endpoints/03_blog/06_do_settings.t +++ b/Web/t/01_endpoints/03_blog/06_do_settings.t @@ -3,6 +3,11 @@ use MJB::Web::Test; use Mojo::File; use YAML::XS qw( Load ); +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the settings for a blog will take effect as part # of the blog setup. diff --git a/Web/t/01_endpoints/04_dashboard/01_index.t b/Web/t/01_endpoints/04_dashboard/01_index.t index d67585a..a26aef8 100644 --- a/Web/t/01_endpoints/04_dashboard/01_index.t +++ b/Web/t/01_endpoints/04_dashboard/01_index.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the dashboard index page works as expected. # diff --git a/Web/t/01_endpoints/04_dashboard/02_blog.t b/Web/t/01_endpoints/04_dashboard/02_blog.t index 5fd0aba..562dbae 100644 --- a/Web/t/01_endpoints/04_dashboard/02_blog.t +++ b/Web/t/01_endpoints/04_dashboard/02_blog.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the blog index (info tab) page loads, # and that correct blog is loaded into the stash.. diff --git a/Web/t/01_endpoints/04_dashboard/03_blog_posts.t b/Web/t/01_endpoints/04_dashboard/03_blog_posts.t index 94adad6..1d7accd 100644 --- a/Web/t/01_endpoints/04_dashboard/03_blog_posts.t +++ b/Web/t/01_endpoints/04_dashboard/03_blog_posts.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the blog posts panel for the blog can be viewed. # diff --git a/Web/t/01_endpoints/04_dashboard/04_blog_post.t b/Web/t/01_endpoints/04_dashboard/04_blog_post.t index f73b2e9..0c8e3cb 100644 --- a/Web/t/01_endpoints/04_dashboard/04_blog_post.t +++ b/Web/t/01_endpoints/04_dashboard/04_blog_post.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog post can be created in the creator panel. # diff --git a/Web/t/01_endpoints/04_dashboard/05_do_blog_post.t b/Web/t/01_endpoints/04_dashboard/05_do_blog_post.t index aa0661c..ef943b6 100644 --- a/Web/t/01_endpoints/04_dashboard/05_do_blog_post.t +++ b/Web/t/01_endpoints/04_dashboard/05_do_blog_post.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog post can be created. # diff --git a/Web/t/01_endpoints/04_dashboard/06_blog_post_edit.t b/Web/t/01_endpoints/04_dashboard/06_blog_post_edit.t index a8b7717..148e9f4 100644 --- a/Web/t/01_endpoints/04_dashboard/06_blog_post_edit.t +++ b/Web/t/01_endpoints/04_dashboard/06_blog_post_edit.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog post can be edited in the editor panel # diff --git a/Web/t/01_endpoints/04_dashboard/07_do_blog_post_edit.t b/Web/t/01_endpoints/04_dashboard/07_do_blog_post_edit.t index fc89f16..44e4d3f 100644 --- a/Web/t/01_endpoints/04_dashboard/07_do_blog_post_edit.t +++ b/Web/t/01_endpoints/04_dashboard/07_do_blog_post_edit.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog post can be edited. # diff --git a/Web/t/01_endpoints/04_dashboard/08_blog_post_alter.t b/Web/t/01_endpoints/04_dashboard/08_blog_post_alter.t index 407f89b..7d5777f 100644 --- a/Web/t/01_endpoints/04_dashboard/08_blog_post_alter.t +++ b/Web/t/01_endpoints/04_dashboard/08_blog_post_alter.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog post can be edited in the alter panel # diff --git a/Web/t/01_endpoints/04_dashboard/09_do_blog_post_alter.t b/Web/t/01_endpoints/04_dashboard/09_do_blog_post_alter.t index cae1e26..fa395f5 100644 --- a/Web/t/01_endpoints/04_dashboard/09_do_blog_post_alter.t +++ b/Web/t/01_endpoints/04_dashboard/09_do_blog_post_alter.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog post can be edited in the alter panel. # diff --git a/Web/t/01_endpoints/04_dashboard/10_do_blog_post_remove.t b/Web/t/01_endpoints/04_dashboard/10_do_blog_post_remove.t index b1a7183..4280c6b 100644 --- a/Web/t/01_endpoints/04_dashboard/10_do_blog_post_remove.t +++ b/Web/t/01_endpoints/04_dashboard/10_do_blog_post_remove.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog post can be deleted through the panel.. # diff --git a/Web/t/01_endpoints/04_dashboard/11_blog_settings.t b/Web/t/01_endpoints/04_dashboard/11_blog_settings.t index 5445b8a..88e24c8 100644 --- a/Web/t/01_endpoints/04_dashboard/11_blog_settings.t +++ b/Web/t/01_endpoints/04_dashboard/11_blog_settings.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the settings panel for the blog can be viewed. # diff --git a/Web/t/01_endpoints/04_dashboard/12_do_blog_settings.t b/Web/t/01_endpoints/04_dashboard/12_do_blog_settings.t index 7616312..3662972 100644 --- a/Web/t/01_endpoints/04_dashboard/12_do_blog_settings.t +++ b/Web/t/01_endpoints/04_dashboard/12_do_blog_settings.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the settings panel for the blog can be viewed. # diff --git a/Web/t/01_endpoints/04_dashboard/13_blog_config.t b/Web/t/01_endpoints/04_dashboard/13_blog_config.t index 3e8ac4d..1649418 100644 --- a/Web/t/01_endpoints/04_dashboard/13_blog_config.t +++ b/Web/t/01_endpoints/04_dashboard/13_blog_config.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the config panel for the blog can be viewed. # diff --git a/Web/t/01_endpoints/04_dashboard/14_do_blog_config.t b/Web/t/01_endpoints/04_dashboard/14_do_blog_config.t index e50b1af..4eb953e 100644 --- a/Web/t/01_endpoints/04_dashboard/14_do_blog_config.t +++ b/Web/t/01_endpoints/04_dashboard/14_do_blog_config.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the config panel for the blog can be used to # change the config/settings. diff --git a/Web/t/01_endpoints/04_dashboard/15_jobs.t b/Web/t/01_endpoints/04_dashboard/15_jobs.t index 886fcc5..8a5dede 100644 --- a/Web/t/01_endpoints/04_dashboard/15_jobs.t +++ b/Web/t/01_endpoints/04_dashboard/15_jobs.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the jobs panel for the blog can be viewed. # diff --git a/Web/t/01_endpoints/04_dashboard/16_blog_media.t b/Web/t/01_endpoints/04_dashboard/16_blog_media.t index 72c857a..e08cc68 100644 --- a/Web/t/01_endpoints/04_dashboard/16_blog_media.t +++ b/Web/t/01_endpoints/04_dashboard/16_blog_media.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the media panel for the blog can be viewed. # diff --git a/Web/t/01_endpoints/04_dashboard/17_do_blog_media.t b/Web/t/01_endpoints/04_dashboard/17_do_blog_media.t index 072bebd..a4da954 100644 --- a/Web/t/01_endpoints/04_dashboard/17_do_blog_media.t +++ b/Web/t/01_endpoints/04_dashboard/17_do_blog_media.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the media panel for the blog can be used # to upload files. diff --git a/Web/t/01_endpoints/04_dashboard/18_do_blog_media_remove.t b/Web/t/01_endpoints/04_dashboard/18_do_blog_media_remove.t index 5841c4c..a13bc2b 100644 --- a/Web/t/01_endpoints/04_dashboard/18_do_blog_media_remove.t +++ b/Web/t/01_endpoints/04_dashboard/18_do_blog_media_remove.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the media panel for the blog can be used # to remove upload files. diff --git a/Web/t/01_endpoints/04_dashboard/19_blog_history.t b/Web/t/01_endpoints/04_dashboard/19_blog_history.t index 7b51404..845c046 100644 --- a/Web/t/01_endpoints/04_dashboard/19_blog_history.t +++ b/Web/t/01_endpoints/04_dashboard/19_blog_history.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the blog history panel for the blog can be viewed. # diff --git a/Web/t/01_endpoints/04_dashboard/20_do_blog_history.t b/Web/t/01_endpoints/04_dashboard/20_do_blog_history.t index 0e1b2c6..ac0e448 100644 --- a/Web/t/01_endpoints/04_dashboard/20_do_blog_history.t +++ b/Web/t/01_endpoints/04_dashboard/20_do_blog_history.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the blog history panel for the blog can be used to # restore the state of an old commit. diff --git a/Web/t/01_endpoints/04_dashboard/21_blog_pages.t b/Web/t/01_endpoints/04_dashboard/21_blog_pages.t index 1f12e2a..c2d99fa 100644 --- a/Web/t/01_endpoints/04_dashboard/21_blog_pages.t +++ b/Web/t/01_endpoints/04_dashboard/21_blog_pages.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the blog pages panel for the blog can be viewed. # diff --git a/Web/t/01_endpoints/04_dashboard/22_blog_page.t b/Web/t/01_endpoints/04_dashboard/22_blog_page.t index 3a67d5e..9e4fed3 100644 --- a/Web/t/01_endpoints/04_dashboard/22_blog_page.t +++ b/Web/t/01_endpoints/04_dashboard/22_blog_page.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog page creator panel can be viewed.. # diff --git a/Web/t/01_endpoints/04_dashboard/23_do_blog_page.t b/Web/t/01_endpoints/04_dashboard/23_do_blog_page.t index 46f6511..fbcc328 100644 --- a/Web/t/01_endpoints/04_dashboard/23_do_blog_page.t +++ b/Web/t/01_endpoints/04_dashboard/23_do_blog_page.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog page can be created. # diff --git a/Web/t/01_endpoints/04_dashboard/24_blog_page_edit.t b/Web/t/01_endpoints/04_dashboard/24_blog_page_edit.t index 2ee4404..712d783 100644 --- a/Web/t/01_endpoints/04_dashboard/24_blog_page_edit.t +++ b/Web/t/01_endpoints/04_dashboard/24_blog_page_edit.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog page can be opened in the editor panel. # diff --git a/Web/t/01_endpoints/04_dashboard/25_do_blog_page_edit.t b/Web/t/01_endpoints/04_dashboard/25_do_blog_page_edit.t index 283bf98..f7438ee 100644 --- a/Web/t/01_endpoints/04_dashboard/25_do_blog_page_edit.t +++ b/Web/t/01_endpoints/04_dashboard/25_do_blog_page_edit.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog page can be edited. # diff --git a/Web/t/01_endpoints/04_dashboard/26_do_blog_page_remove.t b/Web/t/01_endpoints/04_dashboard/26_do_blog_page_remove.t index e789b4f..2ec38c5 100644 --- a/Web/t/01_endpoints/04_dashboard/26_do_blog_page_remove.t +++ b/Web/t/01_endpoints/04_dashboard/26_do_blog_page_remove.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that a blog page can be removed. # diff --git a/Web/t/01_endpoints/05_root/01_index.t b/Web/t/01_endpoints/05_root/01_index.t index b56690d..d594517 100644 --- a/Web/t/01_endpoints/05_root/01_index.t +++ b/Web/t/01_endpoints/05_root/01_index.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + my $t = Test::Mojo::MJB->new('MJB::Web'); # Home Page Exists diff --git a/Web/t/01_endpoints/05_root/02_about.t b/Web/t/01_endpoints/05_root/02_about.t index bdf8255..fa63290 100644 --- a/Web/t/01_endpoints/05_root/02_about.t +++ b/Web/t/01_endpoints/05_root/02_about.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + my $t = Test::Mojo::MJB->new('MJB::Web'); # About Page Exists diff --git a/Web/t/01_endpoints/05_root/03_contact.t b/Web/t/01_endpoints/05_root/03_contact.t index 0072115..2d8c4ff 100644 --- a/Web/t/01_endpoints/05_root/03_contact.t +++ b/Web/t/01_endpoints/05_root/03_contact.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + my $t = Test::Mojo::MJB->new('MJB::Web'); # Contact Page Exists diff --git a/Web/t/01_endpoints/06_user_settings/01_profile.t b/Web/t/01_endpoints/06_user_settings/01_profile.t index 6d9f202..f5f6425 100644 --- a/Web/t/01_endpoints/06_user_settings/01_profile.t +++ b/Web/t/01_endpoints/06_user_settings/01_profile.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the profile page displays the user's name and email # address. diff --git a/Web/t/01_endpoints/06_user_settings/02_do_profile.t b/Web/t/01_endpoints/06_user_settings/02_do_profile.t index b150b7e..ac365a1 100644 --- a/Web/t/01_endpoints/06_user_settings/02_do_profile.t +++ b/Web/t/01_endpoints/06_user_settings/02_do_profile.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the profile page displays the user's name and email # address. diff --git a/Web/t/01_endpoints/06_user_settings/03_change_password.t b/Web/t/01_endpoints/06_user_settings/03_change_password.t index 386dc98..fa69bdb 100644 --- a/Web/t/01_endpoints/06_user_settings/03_change_password.t +++ b/Web/t/01_endpoints/06_user_settings/03_change_password.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the password change page exists. # diff --git a/Web/t/01_endpoints/06_user_settings/04_do_change_password.t b/Web/t/01_endpoints/06_user_settings/04_do_change_password.t index 5902f24..3e4ac34 100644 --- a/Web/t/01_endpoints/06_user_settings/04_do_change_password.t +++ b/Web/t/01_endpoints/06_user_settings/04_do_change_password.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the password change page works as expected. # diff --git a/Web/t/01_endpoints/06_user_settings/05_subscription.t b/Web/t/01_endpoints/06_user_settings/05_subscription.t index 1f8acb9..0374304 100644 --- a/Web/t/01_endpoints/06_user_settings/05_subscription.t +++ b/Web/t/01_endpoints/06_user_settings/05_subscription.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # This test ensures that the subscription page works. # diff --git a/Web/t/01_endpoints/06_user_settings/06_do_subscription.t b/Web/t/01_endpoints/06_user_settings/06_do_subscription.t index 4daa223..bb4f53f 100644 --- a/Web/t/01_endpoints/06_user_settings/06_do_subscription.t +++ b/Web/t/01_endpoints/06_user_settings/06_do_subscription.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # Ensure the handler exists for do_subscription. # diff --git a/Web/t/01_endpoints/06_user_settings/07_do_subscription_manage.t b/Web/t/01_endpoints/06_user_settings/07_do_subscription_manage.t index e0d90e9..8c45755 100644 --- a/Web/t/01_endpoints/06_user_settings/07_do_subscription_manage.t +++ b/Web/t/01_endpoints/06_user_settings/07_do_subscription_manage.t @@ -1,6 +1,11 @@ #!/usr/bin/env perl use MJB::Web::Test; +#== +# Initialize Testing Database +#== +MJB::Web::Test::enable_testing_database(); + #== # Ensure the handler exists for do_subscription_manage. #