aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions
diff options
context:
space:
mode:
authorRubén Calvo <rubencm@gmail.com>2017-09-10 11:19:40 +0200
committerRubén Calvo <rubencm@gmail.com>2017-09-10 12:16:51 +0200
commitf6b8f69e7ec51841785bc598a5e0533d946c1def (patch)
treede940dceea358b786919cd9357d944b6aaac5730 /tests/functions
parent3f9de5b1d4000a45a7a5bc8ae9a74565ca3046e3 (diff)
downloadforums-f6b8f69e7ec51841785bc598a5e0533d946c1def.tar
forums-f6b8f69e7ec51841785bc598a5e0533d946c1def.tar.gz
forums-f6b8f69e7ec51841785bc598a5e0533d946c1def.tar.bz2
forums-f6b8f69e7ec51841785bc598a5e0533d946c1def.tar.xz
forums-f6b8f69e7ec51841785bc598a5e0533d946c1def.zip
[ticket/15172] Add symfony_request to some tests
PHPBB3-15172
Diffstat (limited to 'tests/functions')
-rw-r--r--tests/functions/make_clickable_email_test.php5
-rw-r--r--tests/functions/make_clickable_test.php3
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/functions/make_clickable_email_test.php b/tests/functions/make_clickable_email_test.php
index f32b4339a8..d481bde80d 100644
--- a/tests/functions/make_clickable_email_test.php
+++ b/tests/functions/make_clickable_email_test.php
@@ -17,9 +17,10 @@ class phpbb_functions_make_clickable_email_test extends phpbb_test_case
{
parent::setUp();
- global $config, $user, $request;
+ global $config, $user, $request, $symfony_request;
$user = new phpbb_mock_user();
$request = new phpbb_mock_request();
+ $symfony_request = new \phpbb\symfony_request($request);
}
/**
@@ -168,7 +169,7 @@ class phpbb_functions_make_clickable_email_test extends phpbb_test_case
array('abc,def@example.com'), // invalid character ,
array('abc<def@example.com'), // invalid character <
array('abc>def@example.com', 'abc><!-- e --><a href="mailto:def@example.com">def@example.com</a><!-- e -->'), // invalid character >
-
+
// http://fightingforalostcause.net/misc/2006/compare-email-regex.php
array('missingDomain@.com'),
array('@missingLocal.org'),
diff --git a/tests/functions/make_clickable_test.php b/tests/functions/make_clickable_test.php
index 48fc2c19fb..a351a6d527 100644
--- a/tests/functions/make_clickable_test.php
+++ b/tests/functions/make_clickable_test.php
@@ -146,9 +146,10 @@ class phpbb_functions_make_clickable_test extends phpbb_test_case
{
parent::setUp();
- global $config, $user, $request;
+ global $config, $user, $request, $symfony_request;
$user = new phpbb_mock_user();
$request = new phpbb_mock_request();
+ $symfony_request = new \phpbb\symfony_request($request);
}
/**