mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-22 02:50:00 +01:00
[ticket/10941] Removed manual includes of mock classes
Also marked a test as incomplete even though this appears to be ignored when actually running the tests. PHPBB3-10941
This commit is contained in:
parent
580cec619b
commit
9f3a02d475
@ -43,11 +43,12 @@ class phpbb_functional_fileupload_test_form extends phpbb_functional_test_case
|
||||
{
|
||||
// Cannot be tested by an admin account which this functional framework
|
||||
// provides
|
||||
/*$crawler = $this->request('GET', 'posting.php?mode=reply&f=2&t=1&sid=' . $this->sid);
|
||||
$this->markTestIncomplete();
|
||||
$crawler = $this->request('GET', 'posting.php?mode=reply&f=2&t=1&sid=' . $this->sid);
|
||||
$form = $crawler->selectButton('add_file')->form();
|
||||
$form['fileupload']->upload($path . 'too-large.png');
|
||||
$crawler = $this->client->submit($form);
|
||||
$this->assertEquals(1, $crawler->filter('div#message')->count());*/
|
||||
$this->assertEquals(1, $crawler->filter('div#message')->count());
|
||||
}
|
||||
|
||||
public function test_valid_file()
|
||||
|
@ -10,8 +10,6 @@
|
||||
require_once __DIR__ . '/../../phpBB/includes/functions.php';
|
||||
require_once __DIR__ . '/../../phpBB/includes/utf/utf_tools.php';
|
||||
require_once __DIR__ . '/../../phpBB/includes/functions_upload.php';
|
||||
require_once __DIR__ . '/../mock/fileupload.php';
|
||||
require_once __DIR__ . '/../mock/request.php';
|
||||
|
||||
class phpbb_filespec_test extends phpbb_test_case
|
||||
{
|
||||
|
@ -10,7 +10,6 @@
|
||||
require_once __DIR__ . '/../../phpBB/includes/functions.php';
|
||||
require_once __DIR__ . '/../../phpBB/includes/utf/utf_tools.php';
|
||||
require_once __DIR__ . '/../../phpBB/includes/functions_upload.php';
|
||||
require_once __DIR__ . '/../mock/filespec.php';
|
||||
|
||||
class phpbb_fileupload_test extends phpbb_test_case
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user