mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-20 07:42:09 +02:00
[ticket/13232] Ensure prune cron job always gets run in prune test
The cron scheduler might pick a different task but we don't want to go through them all to find the one we need. So we just make sure cron is run at all and then manually run the one we want. PHPBB3-13232
This commit is contained in:
parent
dbaee1a5da
commit
dccbd573e8
@ -129,8 +129,8 @@ class phpbb_functional_prune_shadow_topic_test extends phpbb_functional_test_cas
|
||||
$result = $this->db->sql_query($sql);
|
||||
|
||||
$crawler = self::request('GET', "viewforum.php?f={$this->data['forums']['Prune Shadow']}&sid={$this->sid}");
|
||||
$cron_link = $crawler->filter('img')->last()->attr('src');
|
||||
$crawler = self::request('GET', $cron_link . "&sid={$this->sid}", array(), false);
|
||||
$this->assertNotEmpty($crawler->filter('img')->last()->attr('src'));
|
||||
self::request('GET', "cron.php?cron_type=cron.task.core.prune_shadow_topics&f={$this->data['forums']['Prune Shadow']}&sid={$this->sid}", array(), false);
|
||||
|
||||
$this->assert_forum_details($this->data['forums']['Prune Shadow'], array(
|
||||
'forum_posts_approved' => 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user