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;
