mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/16510] Disable showing unapproved posts to users in feed test
PHPBB3-16510
This commit is contained in:
parent
2d1e8dc8a0
commit
8ab866e7f4
2 changed files with 7 additions and 2 deletions
|
@ -63,6 +63,13 @@ class phpbb_functional_feed_test extends phpbb_functional_test_case
|
||||||
$crawler = self::submit($form);
|
$crawler = self::submit($form);
|
||||||
self::assertContainsLang('CONFIG_UPDATED', $crawler->filter('.successbox')->text());
|
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)
|
// Special config (Guest can't see attachments)
|
||||||
$this->add_lang('acp/permissions');
|
$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.
|
// installed, and also before each test case is run.
|
||||||
self::$config['table_prefix'] = 'phpbb_';
|
self::$config['table_prefix'] = 'phpbb_';
|
||||||
|
|
||||||
self::$config['display_unapproved_posts'] = false;
|
|
||||||
|
|
||||||
if (!isset(self::$config['phpbb_functional_url']))
|
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.');
|
self::markTestSkipped('phpbb_functional_url was not set in test_config and wasn\'t set as PHPBB_FUNCTIONAL_URL environment variable either.');
|
||||||
|
|
Loading…
Add table
Reference in a new issue