mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-17 06:08:19 +01:00
[ticket/16510] Disable showing unapproved posts to users in feed test
PHPBB3-16510
This commit is contained in:
parent
2d1e8dc8a0
commit
8ab866e7f4
@ -63,6 +63,13 @@ class phpbb_functional_feed_test extends phpbb_functional_test_case
|
||||
$crawler = self::submit($form);
|
||||
self::assertContainsLang('CONFIG_UPDATED', $crawler->filter('.successbox')->text());
|
||||
|
||||
// Disable showing unapproved posts to users
|
||||
$crawler = self::request('GET', "adm/index.php?sid={$this->sid}&i=acp_board&mode=features");
|
||||
$form = $crawler->selectButton('Submit')->form();
|
||||
$form->setValues(['config[display_unapproved_posts]' => false]);
|
||||
$crawler = self::submit($form);
|
||||
self::assertContainsLang('CONFIG_UPDATED', $crawler->filter('.successbox')->text());
|
||||
|
||||
// Special config (Guest can't see attachments)
|
||||
$this->add_lang('acp/permissions');
|
||||
|
||||
|
@ -55,8 +55,6 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
// installed, and also before each test case is run.
|
||||
self::$config['table_prefix'] = 'phpbb_';
|
||||
|
||||
self::$config['display_unapproved_posts'] = false;
|
||||
|
||||
if (!isset(self::$config['phpbb_functional_url']))
|
||||
{
|
||||
self::markTestSkipped('phpbb_functional_url was not set in test_config and wasn\'t set as PHPBB_FUNCTIONAL_URL environment variable either.');
|
||||
|
Loading…
x
Reference in New Issue
Block a user