Upload: Don't run some upload tests on multisite.
This moves several unit tests added in [44438] so they aren't run during multisite tests. See #45615. git-svn-id: https://develop.svn.wordpress.org/trunk@44442 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
843111a03b
commit
54fd47e1f1
|
@ -1356,35 +1356,6 @@ class Tests_Functions extends WP_UnitTestCase {
|
|||
'proper_filename' => false,
|
||||
),
|
||||
),
|
||||
// Assorted text/* sample files
|
||||
array(
|
||||
DIR_TESTDATA . '/uploads/test.vtt',
|
||||
'test.vtt',
|
||||
array(
|
||||
'ext' => 'vtt',
|
||||
'type' => 'text/vtt',
|
||||
'proper_filename' => false,
|
||||
),
|
||||
),
|
||||
array(
|
||||
DIR_TESTDATA . '/uploads/test.csv',
|
||||
'test.csv',
|
||||
array(
|
||||
'ext' => 'csv',
|
||||
'type' => 'text/csv',
|
||||
'proper_filename' => false,
|
||||
),
|
||||
),
|
||||
// RTF files.
|
||||
array(
|
||||
DIR_TESTDATA . '/uploads/test.rtf',
|
||||
'test.rtf',
|
||||
array(
|
||||
'ext' => 'rtf',
|
||||
'type' => 'application/rtf',
|
||||
'proper_filename' => false,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Test a few additional file types on single sites.
|
||||
|
@ -1422,6 +1393,35 @@ class Tests_Functions extends WP_UnitTestCase {
|
|||
'proper_filename' => false,
|
||||
),
|
||||
),
|
||||
// Assorted text/* sample files
|
||||
array(
|
||||
DIR_TESTDATA . '/uploads/test.vtt',
|
||||
'test.vtt',
|
||||
array(
|
||||
'ext' => 'vtt',
|
||||
'type' => 'text/vtt',
|
||||
'proper_filename' => false,
|
||||
),
|
||||
),
|
||||
array(
|
||||
DIR_TESTDATA . '/uploads/test.csv',
|
||||
'test.csv',
|
||||
array(
|
||||
'ext' => 'csv',
|
||||
'type' => 'text/csv',
|
||||
'proper_filename' => false,
|
||||
),
|
||||
),
|
||||
// RTF files.
|
||||
array(
|
||||
DIR_TESTDATA . '/uploads/test.rtf',
|
||||
'test.rtf',
|
||||
array(
|
||||
'ext' => 'rtf',
|
||||
'type' => 'application/rtf',
|
||||
'proper_filename' => false,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue