File: GenerateSource.t

package info (click to toggle)
libdbix-class-helpers-perl 2.036000-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,008 kB
  • sloc: perl: 5,041; sql: 537; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use strict;
use warnings;

use lib 't/lib';
use Test::More;

use TestSchema;

TestSchema->load_components('Helper::Schema::GenerateSource');
TestSchema->generate_source(PsychoKiller => 'Lolbot');

my $class = TestSchema->class('PsychoKiller');
ok($class, 'PsychoKiller gets registered');
ok($class->isa('Lolbot'), 'PsychoKiller inherits from Lolbot');
ok(ref($class) ne 'Lolbot', '... but PsychoKiller is not just a Lolbot');

done_testing;