From b4b0c7e72d7eaee2fbfc7022022c9698323203dd Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 31 Dec 2009 13:16:41 +0000 Subject: import rt 3.8.7 --- rt/t/api/template-insert.t | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 rt/t/api/template-insert.t (limited to 'rt/t/api/template-insert.t') diff --git a/rt/t/api/template-insert.t b/rt/t/api/template-insert.t new file mode 100644 index 000000000..47bbd790c --- /dev/null +++ b/rt/t/api/template-insert.t @@ -0,0 +1,26 @@ +#!/usr/bin/perl + +use warnings; +use strict; + + +use RT; +use RT::Test tests => 7; + + + +# This tiny little test script triggers an interaction bug between DBD::Oracle 1.16, SB 1.15 and RT 3.4 + +use_ok('RT::Template'); +my $template = RT::Template->new($RT::SystemUser); + +isa_ok($template, 'RT::Template'); +my ($val,$msg) = $template->Create(Queue => 1, + Name => 'InsertTest', + Content => 'This is template content'); +ok($val,$msg); +is($template->Name, 'InsertTest'); +is($template->Content, 'This is template content', "We created the object right"); +($val, $msg) = $template->SetContent( 'This is new template content'); +ok($val,$msg); +is($template->Content, 'This is new template content', "We managed to _Set_ the content"); -- cgit v1.2.1