first pass RT4 merge, RT#13852
[freeside.git] / rt / t / web / query_log.t
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4
5 use RT::Test tests => 9;
6
7 RT->Config->Set(StatementLog => 1);
8
9 my ($baseurl, $m) = RT::Test->started_ok;
10 ok $m->login, 'logged in';
11
12 my $root = RT::User->new($RT::SystemUser);
13 $root->LoadByEmail('root@localhost');
14
15 $m->get_ok("/Admin/Tools/Queries.html");
16 $m->text_contains("/index.html", "we include info about a page we hit while logging in");
17 $m->text_contains("Stack:", "stack traces");
18 $m->text_like(qr{share/html/autohandler:\d+}, "stack trace includes mason components");
19 $m->text_contains("SELECT * FROM Principals WHERE id = '".$root->id."'", "we interpolate bind params");
20