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:
Joe McGill 2019-01-07 21:41:40 +00:00
parent 843111a03b
commit 54fd47e1f1
1 changed files with 29 additions and 29 deletions

View File

@ -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,
),
),
)
);
}