1
0
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:
Marc Alexander 2020-06-07 10:14:30 +02:00
parent 2d1e8dc8a0
commit 8ab866e7f4
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 7 additions and 2 deletions

View File

@ -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');

View File

@ -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.');