CMS-Drupal-Modules-MembershipEntity
view release on metacpan or search on metacpan
t/20_valid_drupal.t view on Meta::CPAN
use CMS::Drupal::Modules::MembershipEntity;
my %params;
my $skip = 0;
if ( exists $ENV{'DRUPAL_TEST_CREDS'} ) {
%params = ( split ',', $ENV{'DRUPAL_TEST_CREDS'} );
} else {
print <<EOT;
No database credentials found in ENV.
Skipping Drupal database tests.
If you want to run these tests in the future,
set the value of DRUPAL_TEST_CREDS in your ENV as
documented in the source of this file,
$me
EOT
$skip++;
}
SKIP: {
skip 'No database credentials supplied', 3, if $skip;
my $drupal;
my $dbh;
subtest 'Object instantiation', sub {
plan tests => 3;
can_ok( 'CMS::Drupal', 'new' );
lives_ok { $drupal = CMS::Drupal->new };
isa_ok( $drupal, 'CMS::Drupal');
t/30_build_and_validate_test_db.t view on Meta::CPAN
use warnings;
use Test::More tests => 4;
use Test::Group;
use DBI;
use FindBin;
use Time::Local;
BEGIN {
## Make sure we don't connect to our real DB if we
## have given the credentials for it
$ENV{'DRUPAL_IGNORE_TEST_CREDS'} = 1;
}
subtest 'We have all our parts' => sub {
plan tests => 4;
use_ok( 'CMS::Drupal' ) or die;
use_ok( 'CMS::Drupal::Modules::MembershipEntity' ) or die;
use_ok( 'CMS::Drupal::Modules::MembershipEntity::Test' );
subtest 'All the data files exist.' => sub {
t/40_fetch_memberships.t view on Meta::CPAN
#! perl
use strict;
use warnings;
BEGIN {
## Make sure we don't connect to our real DB if we
## have given the credentials for it
$ENV{'DRUPAL_IGNORE_TEST_CREDS'} = 1;
}
# Bug in Strawberry Perl 5.14 with open.pm
# see http://www.perlmonks.org/?node_id=1136800
use if ! ( $^O eq 'MSWin32' and $] =~ /5.014/ ), open => qw/ :std :encoding(utf8) /;
use Test::More tests => 1;
use Test::Group;
use Test::Exception;
t/50_term_object_params.t view on Meta::CPAN
#! perl
use strict;
use warnings;
BEGIN {
## Make sure we don't connect to our real DB if we
## have given the credentials for it
$ENV{'DRUPAL_IGNORE_TEST_CREDS'} = 1;
}
use Test::More tests => 2;
use Test::Group;
use Test::Exception;
use CMS::Drupal;
use CMS::Drupal::Modules::MembershipEntity;
use CMS::Drupal::Modules::MembershipEntity::Test;
t/55_term_object_functions.t view on Meta::CPAN
#! perl
use strict;
use warnings;
BEGIN {
## Make sure we don't connect to our real DB if we
## have given the credentials for it
$ENV{'DRUPAL_IGNORE_TEST_CREDS'} = 1;
}
use Test::More tests => 1;
use Test::Group;
use CMS::Drupal;
use CMS::Drupal::Modules::MembershipEntity;
use CMS::Drupal::Modules::MembershipEntity::Test;
t/60_membership_object_params.t view on Meta::CPAN
#! perl
use strict;
use warnings;
BEGIN {
## Make sure we don't connect to our real DB if we
## have given the credentials for it
$ENV{'DRUPAL_IGNORE_TEST_CREDS'} = 1;
}
use Test::More tests => 2;
use Test::Group;
use Test::Exception;
use CMS::Drupal;
use CMS::Drupal::Modules::MembershipEntity;
use CMS::Drupal::Modules::MembershipEntity::Test;
t/65_membership_object_functions.t view on Meta::CPAN
#! perl
use strict;
use warnings;
BEGIN {
## Make sure we don't connect to our real DB if we
## have given the credentials for it
$ENV{'DRUPAL_IGNORE_TEST_CREDS'} = 1;
}
use Test::More tests => 1;
use Test::Group;
use CMS::Drupal;
use CMS::Drupal::Modules::MembershipEntity;
use CMS::Drupal::Modules::MembershipEntity::Test;
t/70_stats_object_parameters.t view on Meta::CPAN
#! perl
use strict;
use warnings;
BEGIN {
## Make sure we don't connect to our real DB if we
## have given the credentials for it
$ENV{'DRUPAL_IGNORE_TEST_CREDS'} = 1;
}
use Test::More tests => 14;
use CMS::Drupal;
use CMS::Drupal::Modules::MembershipEntity;
use CMS::Drupal::Modules::MembershipEntity::Test;
my $drupal = CMS::Drupal->new;
( run in 0.266 second using v1.01-cache-2.11-cpan-a5abf4f5562 )