File: plugins.t

package info (click to toggle)
libbio-chado-schema-perl 0.10010-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,800 kB
  • sloc: perl: 15,043; makefile: 7; sql: 3
file content (20 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use warnings;
use Test::More;

use lib 't/plugins_test';
use Bio::Chado::Schema;

my $schema = Bio::Chado::Schema->connect('dbi:SQLite::memory:');
isa_ok( $schema, 'DBIx::Class::Schema' );

$schema->deploy;
ok 1, 'deployed OK';

is $schema->resultset('MyPlugin::Foo')->count, 0,
   'got MyPlugin::Foo resultset, no rows';

is $schema->resultset('Organism::Organism')->search_related('myplugin_foos')->count, 0,
   'successfully injected rel';

done_testing;