RT 4.2.11, ticket#13852
[freeside.git] / rt / t / api / initialdata.t
diff --git a/rt/t/api/initialdata.t b/rt/t/api/initialdata.t
new file mode 100644 (file)
index 0000000..5856528
--- /dev/null
@@ -0,0 +1,16 @@
+use strict;
+use warnings;
+
+use RT::Test tests => 'no_declare';
+
+# This test script processes the sample initialdata file in
+# ../data/initialdata/initialdata
+# To add initialdata tests, add the data to the initialdata file and it
+# will be processed by this script.
+
+my $initialdata = RT::Test::get_relocatable_file("initialdata" => "..", "data", "initialdata");
+my ($rv, $msg) = RT->DatabaseHandle->InsertData( $initialdata, undef, disconnect_after => 0 );
+ok($rv, "Inserted test data from $initialdata")
+    or diag "Error: $msg";
+
+done_testing();
\ No newline at end of file