summaryrefslogtreecommitdiff
path: root/rt/t/security/CVE-2011-5092-installmode.t
blob: ce88a4fec78ac62e693ab3b6ef0516173df9f2e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use strict;
use warnings;

BEGIN {
    $ENV{RT_TEST_WEB_HANDLER} = 'inline';
}

use RT::Test tests => undef;
use Test::Warn;

my ($base, $m) = RT::Test->started_ok;

$m->login;
$m->content_like(qr/RT at a glance/i, 'homepage');

warning_like {
    ok !RT->InstallMode(1), 'install mode failed to turn on';
} qr/tried to turn on InstallMode/;

$m->reload;
$m->content_like(qr/RT at a glance/i, 'still homepage');

undef $m;
done_testing;