mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13241] Remove sleep() since the method takes care of this now
PHPBB3-13241
This commit is contained in:
parent
e42202e794
commit
b868886b25
1 changed files with 0 additions and 12 deletions
|
@ -322,15 +322,9 @@ class phpbb_functional_feed_test extends phpbb_functional_test_case
|
||||||
$post = $this->create_topic($this->data['forums']['Feeds #news'], 'Feeds #news - Topic #1', 'This is a test topic posted by the testing framework.');
|
$post = $this->create_topic($this->data['forums']['Feeds #news'], 'Feeds #news - Topic #1', 'This is a test topic posted by the testing framework.');
|
||||||
$this->data['topics']['Feeds #news - Topic #1'] = (int) $post['topic_id'];
|
$this->data['topics']['Feeds #news - Topic #1'] = (int) $post['topic_id'];
|
||||||
|
|
||||||
// Travis is too fast, so we have to wait
|
|
||||||
sleep(1);
|
|
||||||
|
|
||||||
$post = $this->create_topic($this->data['forums']['Feeds #news'], 'Feeds #news - Topic #2', 'This is a test topic posted by the testing framework.');
|
$post = $this->create_topic($this->data['forums']['Feeds #news'], 'Feeds #news - Topic #2', 'This is a test topic posted by the testing framework.');
|
||||||
$crawler = self::request('GET', "viewtopic.php?t={$post['topic_id']}&sid={$this->sid}");
|
$crawler = self::request('GET', "viewtopic.php?t={$post['topic_id']}&sid={$this->sid}");
|
||||||
|
|
||||||
// Travis is too fast, so we have to wait
|
|
||||||
sleep(1);
|
|
||||||
|
|
||||||
$this->assertContains('Feeds #news - Topic #2', $crawler->filter('html')->text());
|
$this->assertContains('Feeds #news - Topic #2', $crawler->filter('html')->text());
|
||||||
$this->data['topics']['Feeds #news - Topic #2'] = (int) $post['topic_id'];
|
$this->data['topics']['Feeds #news - Topic #2'] = (int) $post['topic_id'];
|
||||||
$this->data['posts']['Feeds #news - Topic #2'] = (int) $this->get_parameter_from_link($crawler->filter('.post')->selectLink($this->lang('POST', '', ''))->link()->getUri(), 'p');
|
$this->data['posts']['Feeds #news - Topic #2'] = (int) $this->get_parameter_from_link($crawler->filter('.post')->selectLink($this->lang('POST', '', ''))->link()->getUri(), 'p');
|
||||||
|
@ -456,9 +450,6 @@ class phpbb_functional_feed_test extends phpbb_functional_test_case
|
||||||
$post = $this->create_topic($this->data['forums']['Feeds #1'], 'Feeds #1 - Topic #1', 'This is a test topic posted by the testing framework.');
|
$post = $this->create_topic($this->data['forums']['Feeds #1'], 'Feeds #1 - Topic #1', 'This is a test topic posted by the testing framework.');
|
||||||
$this->data['topics']['Feeds #1 - Topic #1'] = (int) $post['topic_id'];
|
$this->data['topics']['Feeds #1 - Topic #1'] = (int) $post['topic_id'];
|
||||||
|
|
||||||
// Travis is too fast, so we have to wait
|
|
||||||
sleep(1);
|
|
||||||
|
|
||||||
$post = $this->create_topic($this->data['forums']['Feeds #1.1'], 'Feeds #1.1 - Topic #1', 'This is a test topic posted by the testing framework.');
|
$post = $this->create_topic($this->data['forums']['Feeds #1.1'], 'Feeds #1.1 - Topic #1', 'This is a test topic posted by the testing framework.');
|
||||||
$this->data['topics']['Feeds #1.1 - Topic #1'] = (int) $post['topic_id'];
|
$this->data['topics']['Feeds #1.1 - Topic #1'] = (int) $post['topic_id'];
|
||||||
}
|
}
|
||||||
|
@ -494,9 +485,6 @@ class phpbb_functional_feed_test extends phpbb_functional_test_case
|
||||||
$post = $this->create_topic($this->data['forums']['Feeds #1'], 'Feeds #1 - Topic #2', 'This is a test topic posted by the testing framework.');
|
$post = $this->create_topic($this->data['forums']['Feeds #1'], 'Feeds #1 - Topic #2', 'This is a test topic posted by the testing framework.');
|
||||||
$this->data['topics']['Feeds #1 - Topic #2'] = (int) $post['topic_id'];
|
$this->data['topics']['Feeds #1 - Topic #2'] = (int) $post['topic_id'];
|
||||||
|
|
||||||
// Travis is too fast, so we have to wait
|
|
||||||
sleep(1);
|
|
||||||
|
|
||||||
// Test creating a reply
|
// Test creating a reply
|
||||||
$post2 = $this->create_post($this->data['forums']['Feeds #1'], $post['topic_id'], 'Re: Feeds #1 - Topic #2', 'This is a test post posted by the testing framework.');
|
$post2 = $this->create_post($this->data['forums']['Feeds #1'], $post['topic_id'], 'Re: Feeds #1 - Topic #2', 'This is a test post posted by the testing framework.');
|
||||||
$crawler = self::request('GET', "viewtopic.php?t={$post2['topic_id']}&sid={$this->sid}");
|
$crawler = self::request('GET', "viewtopic.php?t={$post2['topic_id']}&sid={$this->sid}");
|
||||||
|
|
Loading…
Add table
Reference in a new issue