1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/12143] Fix those tests

I always have to fix them.. :(

PHPBB3-12143
This commit is contained in:
Oliver Schramm
2015-05-29 14:40:23 +02:00
parent ca17bc7187
commit 981bd8bed4
3 changed files with 11 additions and 6 deletions

View File

@@ -45,15 +45,15 @@ class phpbb_group_helper_test extends phpbb_test_case
public function test_get_name()
{
// They should be totally fine
$this->assertEquals('Bots', 'Bots');
$this->assertEquals('Some new group', 'new_group');
$this->assertEquals('Should work', 'group_with_ümlauts');
$this->assertEquals('Bots', $this->group_helper->get_name('Bots'));
$this->assertEquals('Some new group', $this->group_helper->get_name('new_group'));
$this->assertEquals('Should work', $this->group_helper->get_name('group_with_ümlauts'));
// This should fail (obviously)
$this->assertNotEquals('They key does not contain uppercase letters', 'not_uppercase');
$this->assertNotEquals('They key does not contain uppercase letters', $this->group_helper->get_name('not_uppercase'));
// The key doesn't exist so just return group name...
$this->assertEquals('Awesome group', 'Awesome group');
$this->assertEquals('Awesome group', $this->group_helper->get_name('Awesome group'));
}
protected function get_test_language_data_set()