#!/usr/bin/perl -w
use strict; 

use lib qw(./ ./DADA/perllib ../ ../DADA/perllib ../../ ../../DADA/perllib
./t

); 

BEGIN{$ENV{NO_DADA_MAIL_CONFIG_IMPORT} = 1}
use dada_test_config; 
use Test::More; 
unless(dada_test_config::MySQL_test_enabled()  ) {
    plan skip_all => 'MySQL testing is not enabled...';
}
else {
   plan 'no_plan'; 
}


SKIP: {
        eval { require DBD::mysql };

        skip "DBD::mysql not installed", 2 if $@;

    
    
    my $file; 
    dada_test_config::create_MySQL_db(); 
    
    require DADA::Config;
    
    open(FILE, "t/feature-global_unsubscribe.pl") or die $!; 
    
    {
        local $/ = undef; 
        $file = <FILE>; 
    }
    close(FILE); 
    
    eval $file;
    
    if ($@){ 
        diag $@; 
    } 
    
    dada_test_config::destroy_MySQL_db();


}
