X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fcontrollers%2Fbase%2Frender.t;h=b9ce240be18bbd8b64a215c376578424f261a1b1;hb=82ef3a7267760e4c2508fa53f1ba819c34605395;hp=716ba428c08655531253e1cfda977d4c9d1410cb;hpb=e2da553ff383556b6277040b2454a2d06ee70174;p=kivitendo-erp.git diff --git a/t/controllers/base/render.t b/t/controllers/base/render.t index 716ba428c..b9ce240be 100644 --- a/t/controllers/base/render.t +++ b/t/controllers/base/render.t @@ -1,12 +1,14 @@ use strict; use Test::Exception; -use Test::More; +use Test::More tests => 19; use Test::Output; use lib 't'; use Support::TestSetup; use SL::Presenter; +use SL::Controller::Base; +use SL::Layout::Javascript; no warnings 'uninitialized'; @@ -15,10 +17,9 @@ Support::TestSetup::login(); sub reset_test_env { $ENV{HTTP_USER_AGENT} = 'Perl Tests'; - $::request = { - cgi => CGI->new({}), + $::request = Support::TestSetup->create_new_request( layout => SL::Layout::Javascript->new, - }; + ); $::myconfig{menustyle} = 'javascript';