mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/11581] Add assertNotContainsLang() for functional test cases
PHPBB3-11581
This commit is contained in:
@@ -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
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user