use Support::TestSetup;
use SL::Presenter;
+use SL::Controller::Base;
+use SL::Layout::Javascript;
no warnings 'uninitialized';
Support::TestSetup::login();
+if (!Support::TestSetup::templates_cache_writable()) {
+ plan skip_all => 'Cache dir not writable for this test';
+} else {
+ plan tests => 19;
+}
+
sub reset_test_env {
$ENV{HTTP_USER_AGENT} = 'Perl Tests';
- $::request = {
+ $::request = SL::Request->new(
cgi => CGI->new({}),
layout => SL::Layout::Javascript->new,
- };
+ );
$::myconfig{menustyle} = 'javascript';