211c7ac373
When the `ms_files_rewriting` flag is enabled, `ms_upload_constants()` is required to properly set upload directory constants. Once this fires, it is impossible to clean up for a non `ms_files_rewriting` test by turning the option back off. Excluding these tests by default offer a more consistent environment overall. Any tests written for uploaded files in multisite should ideally have a correspondign test in this area. This commit also moves existing `ms_files_rewriting` tests for `test_switch_upload_dir()`. Fixes #30256 git-svn-id: https://develop.svn.wordpress.org/trunk@30286 602fd350-edb4-49c9-b593-d223f7449a82
33 lines
1.2 KiB
XML
33 lines
1.2 KiB
XML
<phpunit
|
|
bootstrap="includes/bootstrap.php"
|
|
backupGlobals="false"
|
|
colors="true"
|
|
>
|
|
<php>
|
|
<const name="WP_TESTS_MULTISITE" value="1" />
|
|
</php>
|
|
<testsuites>
|
|
<!-- Default test suite to run all tests -->
|
|
<testsuite>
|
|
<directory suffix=".php">tests</directory>
|
|
<exclude>tests/phpunit/tests/actions/closures.php</exclude>
|
|
<exclude>tests/phpunit/tests/image/editor.php</exclude>
|
|
<exclude>tests/phpunit/tests/image/editor_gd.php</exclude>
|
|
<exclude>tests/phpunit/tests/image/editor_imagick.php</exclude>
|
|
<file phpVersion="5.3.0">tests/phpunit/tests/actions/closures.php</file>
|
|
<file phpVersion="5.3.0">tests/phpunit/tests/image/editor.php</file>
|
|
<file phpVersion="5.3.0">tests/phpunit/tests/image/editor_gd.php</file>
|
|
<file phpVersion="5.3.0">tests/phpunit/tests/image/editor_imagick.php</file>
|
|
</testsuite>
|
|
</testsuites>
|
|
<groups>
|
|
<exclude>
|
|
<group>ajax</group>
|
|
<group>ms-files</group>
|
|
</exclude>
|
|
</groups>
|
|
<php>
|
|
<const name="WP_RUN_CORE_TESTS" value="1" />
|
|
</php>
|
|
</phpunit>
|