update tests for new noCache syntax
This commit is contained in:
parent
4848b64345
commit
7818789002
2 changed files with 4 additions and 4 deletions
|
|
@ -52,10 +52,10 @@ is($output, $session->url->gateway.$homeAsset->get('url').'/sub/page', 'fetching
|
|||
$session->setting->set('preventProxyCache', 1);
|
||||
|
||||
$output = WebGUI::Macro::PageUrl::process($session);
|
||||
like($output, qr{\?noCache=\d+,\d+$}, 'checking the cache settings in the page URL');
|
||||
like($output, qr{\?noCache=\d+:\d+$}, 'checking the cache settings in the page URL');
|
||||
|
||||
$output = WebGUI::Macro::PageUrl::process($session, '/sub/page');
|
||||
like($output, qr{/sub/page\?noCache=\d+,\d+$}, 'checking the cache settings in the URL are at the end of the page URL');
|
||||
like($output, qr{/sub/page\?noCache=\d+:\d+$}, 'checking the cache settings in the URL are at the end of the page URL');
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,10 +51,10 @@ is($output, $session->url->gateway('/foo/bar'), 'passing URL through to macro');
|
|||
$session->setting->set('preventProxyCache', 1);
|
||||
|
||||
$output = WebGUI::Macro::Slash_gatewayUrl::process($session);
|
||||
like($output, qr{/\?noCache=\d+,\d+$}, 'checking the cache settings in the URL');
|
||||
like($output, qr{/\?noCache=\d+:\d+$}, 'checking the cache settings in the URL');
|
||||
|
||||
$output = WebGUI::Macro::Slash_gatewayUrl::process($session, '/foo/bar');
|
||||
like($output, qr{/foo/bar\?noCache=\d+,\d+$}, 'checking the cache settings in the URL are at the end of the URL');
|
||||
like($output, qr{/foo/bar\?noCache=\d+:\d+$}, 'checking the cache settings in the URL are at the end of the URL');
|
||||
|
||||
$session->setting->set('preventProxyCache', 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue