mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/14454] Remove extra commas
PHPBB-14454
This commit is contained in:
parent
f646fcdefa
commit
13e6cd5992
1 changed files with 4 additions and 4 deletions
|
@ -42,7 +42,7 @@ class phpbb_functional_switch_permissions_test extends phpbb_functional_test_cas
|
||||||
// Check that we switched permissions to test user
|
// Check that we switched permissions to test user
|
||||||
$this->assertStringContainsString(
|
$this->assertStringContainsString(
|
||||||
str_replace('<br />', '<br>', $this->lang('PERMISSIONS_TRANSFERRED', self::TEST_USER)),
|
str_replace('<br />', '<br>', $this->lang('PERMISSIONS_TRANSFERRED', self::TEST_USER)),
|
||||||
$crawler->html(),
|
$crawler->html()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Check that ACP pages get forced to acp main with restore permission info
|
// Check that ACP pages get forced to acp main with restore permission info
|
||||||
|
@ -50,21 +50,21 @@ class phpbb_functional_switch_permissions_test extends phpbb_functional_test_cas
|
||||||
$crawler = self::request('GET', "adm/index.php?i=users&mode=overview&u={$user_id}&sid={$this->sid}");
|
$crawler = self::request('GET', "adm/index.php?i=users&mode=overview&u={$user_id}&sid={$this->sid}");
|
||||||
$this->assertStringContainsString(
|
$this->assertStringContainsString(
|
||||||
$this->lang('PERMISSIONS_TRANSFERRED'),
|
$this->lang('PERMISSIONS_TRANSFERRED'),
|
||||||
$crawler->text(),
|
$crawler->text()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Check that restore permissions link exists
|
// Check that restore permissions link exists
|
||||||
$crawler = self::$client->request('GET', '../index.php?sid=' . $this->sid);
|
$crawler = self::$client->request('GET', '../index.php?sid=' . $this->sid);
|
||||||
$this->assertStringContainsString(
|
$this->assertStringContainsString(
|
||||||
$this->lang('RESTORE_PERMISSIONS'),
|
$this->lang('RESTORE_PERMISSIONS'),
|
||||||
$crawler->text(),
|
$crawler->text()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Check that restore permissions works
|
// Check that restore permissions works
|
||||||
$crawler = self::$client->request('GET', 'ucp.php?mode=restore_perm&sid=' . $this->sid);
|
$crawler = self::$client->request('GET', 'ucp.php?mode=restore_perm&sid=' . $this->sid);
|
||||||
$this->assertStringContainsString(
|
$this->assertStringContainsString(
|
||||||
$this->lang('PERMISSIONS_RESTORED'),
|
$this->lang('PERMISSIONS_RESTORED'),
|
||||||
$crawler->text(),
|
$crawler->text()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue