WebGUI::Session::Http should go away (#11647)
Move logic out of WebGUI::Session::HTTP and into WebGUI::Session::Response / ::Request; deprecate more functions; change references in core to use $session->response instead; fix tests that broke because of the change but not one that merely generate the deprecated warning because I want to know that the proxying of depricated methods is working. These can be changed later.
This commit is contained in:
parent
72bac90f93
commit
57d2dbed56
76 changed files with 581 additions and 358 deletions
|
|
@ -8,6 +8,11 @@
|
|||
# http://www.plainblack.com info@plainblack.com
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
# this test file is now slightly badly named since the functions in
|
||||
# WebGUI::Session::HTTML have all been migrated to
|
||||
# WebGUI::Session::Request and ::Response. still, these tests need
|
||||
# to continue to pass.
|
||||
|
||||
use strict;
|
||||
|
||||
use WebGUI::Test;
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ $session->setting->set('userFunctionStyleId', $templates->{user}->getId);
|
|||
|
||||
is($style->userStyle('userStyle'), 'USER PRINTABLE STYLE TEMPLATE:userStyle',
|
||||
'userStyle returns templated output according to userFunctionStyleId in settings');
|
||||
is($session->http->{_http}{cacheControl}, 'none', 'userStyle(via process): HTTP cacheControl set to none to prevent proxying');
|
||||
is($session->http->getCacheControl, 'none', 'userStyle(via process): HTTP cacheControl set to none to prevent proxying');
|
||||
|
||||
is($style->userStyle('userStyle'), 'USER PRINTABLE STYLE TEMPLATE:userStyle',
|
||||
'userStyle returns templated output according to userFunctionStyleId in settings');
|
||||
|
|
@ -306,8 +306,7 @@ $head =~ s/(^HEAD=.+$)/$1/s;
|
|||
cmp_bag(\@metas, $expectedMetas, 'process:default meta tags with no caching head tags, preventProxyCache setting');
|
||||
$session->setting->set('preventProxyCache', $origPreventProxyCache);
|
||||
|
||||
##No accessor
|
||||
is($session->http->{_http}{cacheControl}, 'none', 'process: HTTP cacheControl set to none to prevent proxying');
|
||||
is($session->http->getCacheControl, 'none', 'process: HTTP cacheControl set to none to prevent proxying');
|
||||
|
||||
####################################################
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue