X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Flifecycles%2Fbasics.t;h=85e77c7321dc9d0ed8a87a45a6f9179c2e70de42;hb=fe10e6c6a2e5de7a2ff468497790d2a317ec0c77;hp=5825a105d27e02d12198fd6b5294f3f2e116b50b;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/t/lifecycles/basics.t b/rt/t/lifecycles/basics.t index 5825a105d..85e77c732 100644 --- a/rt/t/lifecycles/basics.t +++ b/rt/t/lifecycles/basics.t @@ -1,10 +1,7 @@ -#!/usr/bin/perl - use strict; use warnings; -use Data::Dumper; -BEGIN {require 't/lifecycles/utils.pl'}; +BEGIN {require './t/lifecycles/utils.pl'}; my $general = RT::Test->load_or_create_queue( Name => 'General', @@ -20,7 +17,7 @@ my $tstatus = sub { diag "check basic API"; { - my $schema = $general->Lifecycle; + my $schema = $general->LifecycleObj; isa_ok($schema, 'RT::Lifecycle'); is $schema->Name, 'default', "it's a default schema"; is_deeply [$schema->Valid], @@ -81,7 +78,7 @@ diag "check status input on create"; my $valid = 1; foreach ( @form_values ) { - next if $general->Lifecycle->IsValid($_); + next if $general->LifecycleObj->IsValid($_); $valid = 0; diag("$_ doesn't appear to be a valid status, but it was in the form"); } @@ -245,3 +242,5 @@ diag "'!inactive -> inactive' actions are shown even if ticket has unresolved de ); } +undef $m; +done_testing;