aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-03-11 11:09:39 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-03-13 11:25:58 +0100
commit6361d382b30f96758020d226d12b19e4f649b643 (patch)
treee1f6c9f746bf10df32ff1cd19ba777b567e4a4c0 /tests
parenteb1dd47e394702460e182d82990b828aa629fc1b (diff)
downloadforums-6361d382b30f96758020d226d12b19e4f649b643.tar
forums-6361d382b30f96758020d226d12b19e4f649b643.tar.gz
forums-6361d382b30f96758020d226d12b19e4f649b643.tar.bz2
forums-6361d382b30f96758020d226d12b19e4f649b643.tar.xz
forums-6361d382b30f96758020d226d12b19e4f649b643.zip
[ticket/11581] Add assertNotContainsLang() for functional test cases
PHPBB3-11581
Diffstat (limited to 'tests')
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index e40efdec03..3b4da690b4 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -716,15 +716,27 @@ class phpbb_functional_test_case extends phpbb_test_case
/**
* assertContains for language strings
*
- * @param string $needle Search string
- * @param string $haystack Search this
- * @param string $message Optional failure message
+ * @param string $needle Search string
+ * @param string $haystack Search this
+ * @param string $message Optional failure message
*/
public function assertContainsLang($needle, $haystack, $message = null)
{
$this->assertContains(html_entity_decode($this->lang($needle), ENT_QUOTES), $haystack, $message);
}
+ /**
+ * assertNotContains for language strings
+ *
+ * @param string $needle Search string
+ * @param string $haystack Search this
+ * @param string $message Optional failure message
+ */
+ public function assertNotContainsLang($needle, $haystack, $message = null)
+ {
+ $this->assertNotContains(html_entity_decode($this->lang($needle), ENT_QUOTES), $haystack, $message);
+ }
+
/*
* Perform some basic assertions for the page
*