Make WordPress Core

Ticket #44127: MediaEditBackupSizesImageEditOverwrite.xml

File MediaEditBackupSizesImageEditOverwrite.xml, 1.2 KB (added by pbiron, 7 years ago)

This is a phpunit config file to run those tests in MediaEditBackupSizes.php that depend on IMAGE_EDIT_OVERWRITE being true (or are agnostic to its value). Add this file to /tests/phpunit and then run phpunit -c tests/phpunit/MeditEditBackupSizesImageEditOverwrite.xml

Line 
1<phpunit
2                bootstrap="includes/bootstrap.php"
3        backupGlobals="false"
4        colors="true"
5        beStrictAboutTestsThatDoNotTestAnything="true"
6        >
7    <testsuites>
8        <!-- Default test suite to run all tests, modified from multiste.xml -->
9        <testsuite>
10            <directory suffix=".php">tests</directory>
11            <exclude>tests/phpunit/tests/actions/closures.php</exclude>
12            <exclude>tests/phpunit/tests/image/editor.php</exclude>
13            <exclude>tests/phpunit/tests/image/editorGd.php</exclude>
14            <exclude>tests/phpunit/tests/image/editorImagick.php</exclude>
15            <file phpVersion="5.3.0">tests/phpunit/tests/actions/closures.php</file>
16            <file phpVersion="5.3.0">tests/phpunit/tests/image/editor.php</file>
17            <file phpVersion="5.3.0">tests/phpunit/tests/image/editorGd.php</file>
18            <file phpVersion="5.3.0">tests/phpunit/tests/image/editorImagick.php</file>
19        </testsuite>
20    </testsuites>
21    <php>
22        <const name="WP_RUN_CORE_TESTS" value="1" />
23                <const name="IMAGE_EDIT_OVERWRITE" value="1" />
24    </php>
25    <groups>
26        <include>
27                <group>44127</group>
28        </include>
29    </groups>
30</phpunit>