1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/12143] Add some tests

PHPBB3-12143
This commit is contained in:
Oliver Schramm
2015-05-29 11:31:47 +02:00
parent d4095bb11d
commit ca17bc7187
2 changed files with 82 additions and 0 deletions

View File

@@ -39,6 +39,20 @@ class phpbb_language_test extends phpbb_test_case
$lang_array->setValue($this->lang, $this->get_test_data_set());
}
public function test_is_set()
{
// Check for non-existing key
$this->assertFalse($this->lang->is_set('VALUE'));
$this->assertFalse($this->lang->is_set(array('dateformat', 'MAYBE')));
// Check for existing key
$this->assertTrue($this->lang->is_set('FOO'));
$this->assertTrue($this->lang->is_set(array('dateformat', 'AGO')));
// Array doesn't exist at all...
$this->assertFalse($this->lang->is_set(array('PHPBB', 'PHP')));
}
public function test_lang()
{
// No param