[Rt-commit] rt branch, query-logging, updated. rt-3.9.4-77-g9023049

Shawn Moore sartak at bestpractical.com
Thu Sep 30 18:10:35 EDT 2010


The branch, query-logging has been updated
       via  9023049937a59504292c8a06961adbf158fbca2a (commit)
      from  56e20b874e8d67ab93aa80c2c00155110a27e764 (commit)

Summary of changes:
 t/web/query-log.t |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 t/web/query-log.t

- Log -----------------------------------------------------------------
commit 9023049937a59504292c8a06961adbf158fbca2a
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Sep 30 18:13:45 2010 -0400

    Begin adding tests for query-log

diff --git a/t/web/query-log.t b/t/web/query-log.t
new file mode 100644
index 0000000..7551ff9
--- /dev/null
+++ b/t/web/query-log.t
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+
+use RT::Test tests => 5;
+
+RT->Config->Set(StatementLog => 1);
+
+my ($baseurl, $m) = RT::Test->started_ok;
+ok $m->login, 'logged in';
+
+$m->get_ok("/Admin/Tools/Queries.html");
+$m->text_contains("Executed SQL query at", "stack traces");
+$m->text_contains("SELECT * FROM Users WHERE LOWER(Name) = LOWER('root')", "we interpolate bind params");
+

-----------------------------------------------------------------------


More information about the Rt-commit mailing list