mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
Merge branch '3.3.x'
This commit is contained in:
@@ -107,7 +107,7 @@ class phpbb_functional_download_test extends phpbb_functional_test_case
|
||||
));
|
||||
$this->add_lang('posting');
|
||||
|
||||
$crawler = self::request('GET', "posting.php?mode=delete&f={$this->data['forums']['Download #1']}&p={$this->data['posts']['Re: Download Topic #1-#2']}&sid={$this->sid}");
|
||||
$crawler = self::request('GET', "posting.php?mode=delete&p={$this->data['posts']['Re: Download Topic #1-#2']}&sid={$this->sid}");
|
||||
$this->assertContainsLang('DELETE_PERMANENTLY', $crawler->text());
|
||||
|
||||
$form = $crawler->selectButton('Yes')->form();
|
||||
|
@@ -524,7 +524,7 @@ class phpbb_functional_feed_test extends phpbb_functional_test_case
|
||||
));
|
||||
$this->add_lang('posting');
|
||||
|
||||
$crawler = self::request('GET', "posting.php?mode=delete&f={$this->data['forums']['Feeds #1']}&p={$this->data['posts']['Re: Feeds #1 - Topic #2']}&sid={$this->sid}");
|
||||
$crawler = self::request('GET', "posting.php?mode=delete&p={$this->data['posts']['Re: Feeds #1 - Topic #2']}&sid={$this->sid}");
|
||||
self::assertContainsLang('DELETE_PERMANENTLY', $crawler->text());
|
||||
|
||||
$form = $crawler->selectButton('Yes')->form();
|
||||
|
@@ -63,7 +63,7 @@ class phpbb_functional_fileupload_form_test extends phpbb_functional_test_case
|
||||
|
||||
$crawler = self::$client->request(
|
||||
'POST',
|
||||
'posting.php?mode=reply&f=2&t=1&sid=' . $this->sid,
|
||||
'posting.php?mode=reply&t=1&sid=' . $this->sid,
|
||||
$file_form_data,
|
||||
array('fileupload' => $file)
|
||||
);
|
||||
|
@@ -63,7 +63,7 @@ class phpbb_functional_plupload_test extends phpbb_functional_test_case
|
||||
public function get_urls()
|
||||
{
|
||||
return array(
|
||||
array('posting.php?mode=reply&f=2&t=1'),
|
||||
array('posting.php?mode=reply&t=1'),
|
||||
array('ucp.php?i=pm&mode=compose'),
|
||||
);
|
||||
}
|
||||
|
@@ -33,7 +33,7 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
|
||||
$this->assertStringContainsString('This is a test post posted by the testing framework.', $crawler->filter('html')->text());
|
||||
|
||||
// Test quoting a message
|
||||
$crawler = self::request('GET', "posting.php?mode=quote&f=2&t={$post2['topic_id']}&p={$post2['post_id']}&sid={$this->sid}");
|
||||
$crawler = self::request('GET', "posting.php?mode=quote&p={$post2['post_id']}&sid={$this->sid}");
|
||||
$this->assertStringContainsString('This is a test post posted by the testing framework.', $crawler->filter('html')->text());
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
|
||||
$topic = $this->create_topic(2, 'Test Topic 1', 'Test topic');
|
||||
$post = $this->create_post(2, $topic['topic_id'], 'Re: Test Topic 1', $text);
|
||||
|
||||
$crawler = self::request('GET', "posting.php?mode=quote&f=2&t={$post['topic_id']}&p={$post['post_id']}&sid={$this->sid}");
|
||||
$crawler = self::request('GET', "posting.php?mode=quote&p={$post['post_id']}&sid={$this->sid}");
|
||||
|
||||
$this->assertRegexp($expected, $crawler->filter('textarea#message')->text());
|
||||
}
|
||||
@@ -91,7 +91,7 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
|
||||
|
||||
$url = self::$client->getCrawler()->selectLink('Edit')->link()->getUri();
|
||||
$post_id = $this->get_parameter_from_link($url, 'p');
|
||||
$crawler = self::request('GET', "posting.php?mode=edit&f=2&p={$post_id}&sid={$this->sid}");
|
||||
$crawler = self::request('GET', "posting.php?mode=edit&p={$post_id}&sid={$this->sid}");
|
||||
$form = $crawler->selectButton('Submit')->form();
|
||||
$form->setValues(array('message' => 'Edited post'));
|
||||
$crawler = self::submit($form);
|
||||
@@ -115,7 +115,7 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
|
||||
$this->login();
|
||||
$topic = $this->create_topic(2, 'Test Topic 1', 'Test topic');
|
||||
$post = $this->create_post(2, $topic['topic_id'], 'Re: Test Topic 1', $text);
|
||||
$quote_url = "posting.php?mode=quote&f=2&t={$post['topic_id']}&p={$post['post_id']}&sid={$this->sid}";
|
||||
$quote_url = "posting.php?mode=quote&p={$post['post_id']}&sid={$this->sid}";
|
||||
|
||||
$this->admin_login();
|
||||
foreach ($expected as $quote_depth => $expected_text)
|
||||
|
@@ -176,7 +176,7 @@ class phpbb_functional_visibility_disapprove_test extends phpbb_functional_test_
|
||||
|
||||
$link = $crawler->selectLink($this->lang('RETURN_PAGE', '', ''))->link();
|
||||
$link_url = $link->getUri();
|
||||
$this->assertStringContainsString('viewtopic.php?f=' . $this->data['forums']['Disapprove Test #1'] . '&t=' . $this->data['topics']['Disapprove Test Topic #1'], $link_url);
|
||||
$this->assertStringContainsString('viewtopic.php?t=' . $this->data['topics']['Disapprove Test Topic #1'], $link_url);
|
||||
|
||||
$crawler = self::request('GET', "viewtopic.php?t={$this->data['topics']['Disapprove Test Topic #1']}&sid={$this->sid}");
|
||||
$this->assertStringContainsString('Disapprove Test Topic #1', $crawler->filter('html')->text());
|
||||
|
@@ -167,7 +167,7 @@ class phpbb_functional_visibility_reapprove_test extends phpbb_functional_test_c
|
||||
|
||||
$link = $crawler->selectLink($this->lang('RETURN_PAGE', '', ''))->link();
|
||||
$link_url = $link->getUri();
|
||||
$this->assertStringContainsString('viewtopic.php?f=' . $this->data['forums']['Reapprove Test #1'] . '&t=' . $this->data['topics']['Reapprove Test Topic #1'], $link_url);
|
||||
$this->assertStringContainsString('viewtopic.php?t=' . $this->data['topics']['Reapprove Test Topic #1'], $link_url);
|
||||
|
||||
$crawler = self::request('GET', "viewtopic.php?t={$this->data['topics']['Reapprove Test Topic #1']}&sid={$this->sid}");
|
||||
$this->assertStringContainsString('Reapprove Test Topic #1', $crawler->filter('h2')->text());
|
||||
@@ -226,7 +226,7 @@ class phpbb_functional_visibility_reapprove_test extends phpbb_functional_test_c
|
||||
|
||||
$link = $crawler->selectLink($this->lang('RETURN_PAGE', '', ''))->link();
|
||||
$link_url = $link->getUri();
|
||||
$this->assertStringContainsString('viewtopic.php?f=' . $this->data['forums']['Reapprove Test #1'], $link_url);
|
||||
$this->assertStringContainsString('viewtopic.php?t=' . $this->data['topics']['Reapprove Test Topic #2'], $link_url);
|
||||
|
||||
$crawler = self::request('GET', "viewtopic.php?t={$this->data['topics']['Reapprove Test Topic #2']}&sid={$this->sid}");
|
||||
$this->assertStringContainsString('Reapprove Test Topic #2', $crawler->filter('h2')->text());
|
||||
@@ -264,7 +264,7 @@ class phpbb_functional_visibility_reapprove_test extends phpbb_functional_test_c
|
||||
$this->add_user_group('NEWLY_REGISTERED', array('reapprove_testuser'));
|
||||
|
||||
// Test editing a post
|
||||
$posting_url = "posting.php?mode=edit&f={$this->data['forums']['Reapprove Test #1']}&p={$this->data['posts']['Re: Reapprove Test Topic #1-#2']}&sid={$this->sid}";
|
||||
$posting_url = "posting.php?mode=edit&p={$this->data['posts']['Re: Reapprove Test Topic #1-#2']}&sid={$this->sid}";
|
||||
$form_data = array(
|
||||
'message' => 'Post edited by testing framework',
|
||||
'subject' => 'Re: Reapprove Test Topic #1-#2',
|
||||
@@ -287,7 +287,7 @@ class phpbb_functional_visibility_reapprove_test extends phpbb_functional_test_c
|
||||
), 'after editing post');
|
||||
|
||||
// Test editing a topic
|
||||
$posting_url = "posting.php?mode=edit&f={$this->data['forums']['Reapprove Test #1']}&p={$this->data['posts']['Reapprove Test Topic #2']}&sid={$this->sid}";
|
||||
$posting_url = "posting.php?mode=edit&p={$this->data['posts']['Reapprove Test Topic #2']}&sid={$this->sid}";
|
||||
$form_data = array(
|
||||
'message' => 'Post edited by testing framework',
|
||||
'subject' => 'Reapprove Test Topic #2',
|
||||
|
Reference in New Issue
Block a user