mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58: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
|
@ -716,15 +716,27 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
/**
|
/**
|
||||||
* assertContains for language strings
|
* assertContains for language strings
|
||||||
*
|
*
|
||||||
* @param string $needle Search string
|
* @param string $needle Search string
|
||||||
* @param string $haystack Search this
|
* @param string $haystack Search this
|
||||||
* @param string $message Optional failure message
|
* @param string $message Optional failure message
|
||||||
*/
|
*/
|
||||||
public function assertContainsLang($needle, $haystack, $message = null)
|
public function assertContainsLang($needle, $haystack, $message = null)
|
||||||
{
|
{
|
||||||
$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