mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 13:44:12 +02:00
[ticket/17535] Convert config files, make data providers static
PHPBB-17535
This commit is contained in:
@@ -53,7 +53,7 @@ class phpbb_attachment_delete_test extends \phpbb_database_test_case
|
||||
$this->attachment_delete = new \phpbb\attachment\delete($this->config, $this->db, $this->dispatcher, $this->resync, $this->storage);
|
||||
}
|
||||
|
||||
public function data_attachment_delete()
|
||||
public static function data_attachment_delete()
|
||||
{
|
||||
return array(
|
||||
array('attach', '', false, false),
|
||||
@@ -83,7 +83,7 @@ class phpbb_attachment_delete_test extends \phpbb_database_test_case
|
||||
$this->assertSame($expected, $this->attachment_delete->delete($mode, $ids, $resync));
|
||||
}
|
||||
|
||||
public function data_attachment_unlink()
|
||||
public static function data_attachment_unlink()
|
||||
{
|
||||
return array(
|
||||
array(true, true),
|
||||
|
@@ -38,7 +38,7 @@ class phpbb_attachment_manager_test extends \phpbb_test_case
|
||||
return new \phpbb\attachment\manager($this->delete, $this->resync, $this->upload);
|
||||
}
|
||||
|
||||
public function data_manager()
|
||||
public static function data_manager()
|
||||
{
|
||||
return array(
|
||||
array(
|
||||
|
@@ -32,7 +32,7 @@ class phpbb_attachment_resync_test extends \phpbb_database_test_case
|
||||
$this->resync = new \phpbb\attachment\resync($this->db);
|
||||
}
|
||||
|
||||
public function data_resync()
|
||||
public static function data_resync()
|
||||
{
|
||||
return array(
|
||||
array('', array(1), 'post_id', POSTS_TABLE, array('post_attachment' => '1'), array('post_attachment' => '1')),
|
||||
|
@@ -165,7 +165,7 @@ class phpbb_attachment_upload_test extends \phpbb_database_test_case
|
||||
);
|
||||
}
|
||||
|
||||
public function data_upload()
|
||||
public static function data_upload()
|
||||
{
|
||||
return array(
|
||||
array('foobar', 1, false,
|
||||
@@ -280,7 +280,7 @@ class phpbb_attachment_upload_test extends \phpbb_database_test_case
|
||||
), $filedata);
|
||||
}
|
||||
|
||||
public function data_image_upload()
|
||||
public static function data_image_upload()
|
||||
{
|
||||
return array(
|
||||
array(false, false, array(),
|
||||
|
Reference in New Issue
Block a user