mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 05:55:32 +02:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/13241] Remove sleep() and change flood interval instead [ticket/13241] Remove sleep() since the method takes care of this now [ticket/13241] Sleep for 1 second when posting twice in the same second [ticket/13241] Fix pagination with global announcements [ticket/13241] Correctly ignore announcements from topics list [ticket/13241] Add a functional test for viewforum with global announcement
This commit is contained in:
@ -38,6 +38,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
|
||||
static protected $config = array();
|
||||
static protected $already_installed = false;
|
||||
static protected $last_post_timestamp = 0;
|
||||
|
||||
static public function setUpBeforeClass()
|
||||
{
|
||||
@ -1097,6 +1098,12 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
*/
|
||||
protected function submit_message($posting_url, $posting_contains, $form_data)
|
||||
{
|
||||
if (time() == self::$last_post_timestamp)
|
||||
{
|
||||
// Travis is too fast, so we have to wait to not mix up the post/topic order
|
||||
sleep(1);
|
||||
}
|
||||
self::$last_post_timestamp = time();
|
||||
|
||||
$crawler = self::request('GET', $posting_url);
|
||||
$this->assertContains($this->lang($posting_contains), $crawler->filter('html')->text());
|
||||
|
@ -26,7 +26,7 @@ class phpbb_test_case extends PHPUnit_Framework_TestCase
|
||||
'PHP_Token_Stream' => array('customTokens'),
|
||||
'PHP_Token_Stream_CachingFactory' => array('cache'),
|
||||
|
||||
'phpbb_database_test_case' => array('already_connected'),
|
||||
'phpbb_database_test_case' => array('already_connected', 'last_post_timestamp'),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user