mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12175] Fix test for uploading a valid file
PHPBB3-12175
This commit is contained in:
parent
ff57ecf0bc
commit
07f19647f4
1 changed files with 5 additions and 3 deletions
|
@ -82,10 +82,12 @@ class phpbb_functional_fileupload_form_test extends phpbb_functional_test_case
|
|||
|
||||
public function test_valid_file()
|
||||
{
|
||||
$this->markTestIncomplete('Test fails intermittently.');
|
||||
$crawler = $this->upload_file('valid.jpg', 'image/jpeg');
|
||||
// ensure there was no error message rendered
|
||||
|
||||
// Ensure there was no error message rendered
|
||||
$this->assertNotContains('<h2>' . $this->lang('INFORMATION') . '</h2>', $this->get_content());
|
||||
$this->assertContains($this->lang('POSTED_ATTACHMENTS'), $crawler->filter('#postform h3')->eq(1)->text());
|
||||
|
||||
// Also the file name should be in the first row of the files table
|
||||
$this->assertEquals('valid.jpg', $crawler->filter('span.file-name')->eq(1)->text());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue