diff --git tests/phpunit/tests/functions.php tests/phpunit/tests/functions.php
index c7c0b2d1ab..dd908dfcf7 100644
|
|
|
class Tests_Functions extends WP_UnitTestCase { |
| 1356 | 1356 | 'proper_filename' => false, |
| 1357 | 1357 | ), |
| 1358 | 1358 | ), |
| 1359 | | // Assorted text/* sample files |
| 1360 | | array( |
| 1361 | | DIR_TESTDATA . '/uploads/test.vtt', |
| 1362 | | 'test.vtt', |
| 1363 | | array( |
| 1364 | | 'ext' => 'vtt', |
| 1365 | | 'type' => 'text/vtt', |
| 1366 | | 'proper_filename' => false, |
| 1367 | | ), |
| 1368 | | ), |
| 1369 | | array( |
| 1370 | | DIR_TESTDATA . '/uploads/test.csv', |
| 1371 | | 'test.csv', |
| 1372 | | array( |
| 1373 | | 'ext' => 'csv', |
| 1374 | | 'type' => 'text/csv', |
| 1375 | | 'proper_filename' => false, |
| 1376 | | ), |
| 1377 | | ), |
| 1378 | | // RTF files. |
| 1379 | | array( |
| 1380 | | DIR_TESTDATA . '/uploads/test.rtf', |
| 1381 | | 'test.rtf', |
| 1382 | | array( |
| 1383 | | 'ext' => 'rtf', |
| 1384 | | 'type' => 'application/rtf', |
| 1385 | | 'proper_filename' => false, |
| 1386 | | ), |
| 1387 | | ), |
| 1388 | 1359 | ); |
| 1389 | 1360 | |
| 1390 | 1361 | // Test a few additional file types on single sites. |
| … |
… |
class Tests_Functions extends WP_UnitTestCase { |
| 1422 | 1393 | 'proper_filename' => false, |
| 1423 | 1394 | ), |
| 1424 | 1395 | ), |
| | 1396 | // Assorted text/* sample files |
| | 1397 | array( |
| | 1398 | DIR_TESTDATA . '/uploads/test.vtt', |
| | 1399 | 'test.vtt', |
| | 1400 | array( |
| | 1401 | 'ext' => 'vtt', |
| | 1402 | 'type' => 'text/vtt', |
| | 1403 | 'proper_filename' => false, |
| | 1404 | ), |
| | 1405 | ), |
| | 1406 | array( |
| | 1407 | DIR_TESTDATA . '/uploads/test.csv', |
| | 1408 | 'test.csv', |
| | 1409 | array( |
| | 1410 | 'ext' => 'csv', |
| | 1411 | 'type' => 'text/csv', |
| | 1412 | 'proper_filename' => false, |
| | 1413 | ), |
| | 1414 | ), |
| | 1415 | // RTF files. |
| | 1416 | array( |
| | 1417 | DIR_TESTDATA . '/uploads/test.rtf', |
| | 1418 | 'test.rtf', |
| | 1419 | array( |
| | 1420 | 'ext' => 'rtf', |
| | 1421 | 'type' => 'application/rtf', |
| | 1422 | 'proper_filename' => false, |
| | 1423 | ), |
| | 1424 | ), |
| 1425 | 1425 | ) |
| 1426 | 1426 | ); |
| 1427 | 1427 | } |