mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/16904] Adjust tests
PHPBB3-16904
This commit is contained in:
@@ -46,7 +46,7 @@ class phpbb_functional_mcp_quickmod_tools_test extends phpbb_functional_test_cas
|
||||
public function test_move_post_to_topic($crawler)
|
||||
{
|
||||
$this->login();
|
||||
$this->add_lang('common');
|
||||
$this->add_lang(['common', 'mcp']);
|
||||
|
||||
// Select the post in MCP
|
||||
$form = $crawler->selectButton($this->lang('SUBMIT'))->form(array(
|
||||
@@ -54,22 +54,10 @@ class phpbb_functional_mcp_quickmod_tools_test extends phpbb_functional_test_cas
|
||||
));
|
||||
$form['post_id_list'][0]->tick();
|
||||
$crawler = self::submit($form);
|
||||
$this->assertStringContainsString($this->lang('MERGE_POSTS'), $crawler->filter('html')->text());
|
||||
$this->assertStringContainsString($this->lang('MERGE_POSTS_CONFIRM'), $crawler->filter('html')->text());
|
||||
|
||||
return $crawler;
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends test_move_post_to_topic
|
||||
*/
|
||||
public function test_confirm_result($crawler)
|
||||
{
|
||||
$this->login();
|
||||
$this->add_lang('mcp');
|
||||
$form = $crawler->selectButton('Yes')->form();
|
||||
$form = $crawler->selectButton($this->lang('YES'))->form();
|
||||
$crawler = self::submit($form);
|
||||
$this->assertStringContainsString($this->lang('POSTS_MERGED_SUCCESS'), $crawler->text());
|
||||
|
||||
return $crawler;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user