mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11581] Add assertNotContainsLang() for functional test cases
PHPBB3-11581
This commit is contained in:
parent
eb1dd47e39
commit
6361d382b3
1 changed files with 15 additions and 3 deletions
|
@ -725,6 +725,18 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
$this->assertContains(html_entity_decode($this->lang($needle), ENT_QUOTES), $haystack, $message);
|
$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
|
* Perform some basic assertions for the page
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue