Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adds test for form_mail

  • Loading branch information...
commit 9f525b755da9f66b7758e9e75f5391d4317c05bd 1 parent c6c01c6
@oalders authored
Showing with 25 additions and 0 deletions.
  1. +25 −0 t/cap/form_mail.t
View
25 t/cap/form_mail.t
@@ -0,0 +1,25 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+use Data::Printer;
+use Test::More;
+use Try::Tiny;
+
+use Wunder::Framework::CAP::FormMail;
+
+my $fm = Wunder::Framework::CAP::FormMail->new;
+
+ok( $fm, "created object" );
+
+ok( $fm->setup, "setup ok" );
+
+SKIP: {
+ skip "no formmail config", 2 unless $fm->form_config;
+ ok( $fm->form_config, "config ok" );
+ diag p $fm->form_config;
+
+ ok( $fm->send_mail, "send mail ok" );
+}
+done_testing();
Please sign in to comment.
Something went wrong with that request. Please try again.