6 plan skip_all => "Testing the rt-server init sequence in isolation requires Apache"
7 unless ($ENV{RT_TEST_WEB_HANDLER} || '') =~ /^apache/;
10 use JSON qw(from_json);
14 plugins => ["Overlays"];
16 my ($base, $m) = RT::Test->started_ok;
18 # Check that the overlay was actually loaded
19 $m->get_ok("$base/overlay_loaded");
20 is $m->content, "yes", "Plugin's RT/User_Local.pm was loaded";
22 # Check accessible is correct and doesn't need to be rebuilt from overlay
23 $m->get_ok("$base/user_accessible");
24 ok $m->content, "Received some content";
26 my $info = from_json($m->content) || {};
27 ok $info->{Comments}{public}, "User.Comments is marked public via overlay";