X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=t%2Fcontrollers%2Fbase%2Frender.t;h=b9ce240be18bbd8b64a215c376578424f261a1b1;hb=517ed14d9733e94411274bd2b9fb59cef9e632ff;hp=9b09045d61dad16203c37d80957fd13595f073f6;hpb=7647d46acbc2a8253c0afeac5c706c3eb76995d5;p=kivitendo-erp.git diff --git a/t/controllers/base/render.t b/t/controllers/base/render.t index 9b09045d6..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,12 +17,11 @@ 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{stylesheet} = 'javascript'; + $::myconfig{menustyle} = 'javascript'; delete @{ $::form }{qw(header footer)}; } @@ -65,13 +66,13 @@ stdout_like { $ctrl->render(\'Hallo [% world %]', world => 'Welt') } qr//i # Menu yes/no: reset_test_env(); -stdout_like { $ctrl->render(\'Hallo [% world %]', world => 'Welt') } qr/