Repository navigation
Expand file tree
/
Copy pathphpunit.xml
More file actions
45 lines (45 loc) · 3.04 KB
/
Copy pathphpunit.xml
File metadata and controls
45 lines (45 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" bootstrap="tests/bootstrap-default.php">
<testsuites>
<testsuite name="SiteOrigin Panels AI Exposure Tests">
<directory>./tests</directory>
<!-- The copy-content parity suite needs the REAL SiteOrigin_Panels_Admin
loaded first (it asserts the extracted copy_content_to_post()), which
conflicts with AbilitiesTest's Admin shim. It runs separately via
phpunit-copy-content.xml. -->
<exclude>./tests/copy-content</exclude>
<!-- The save-post sanitization suite (develop's stored-XSS fix tests) also
needs the REAL SiteOrigin_Panels_Admin and defines its own SiteOrigin_Panels
stub, incompatible in-process with both the AbilitiesTest shim and the
copy-content stub. It runs separately via phpunit-save-post.xml. -->
<exclude>./tests/save-post</exclude>
<!-- Develop's Layout Block signature suites require the REAL
SiteOrigin_Panels_Admin + SiteOrigin_Panels_Compat_Layout_Block,
incompatible in-process with AbilitiesTest's Admin shim. They run
separately via phpunit-layout-block.xml. -->
<exclude>./tests/layout-block</exclude>
<!-- The import-layout guard suite needs its own SiteOrigin_Panels_Admin
spy shim (process_raw_widgets recorder), incompatible in-process with
AbilitiesTest's Admin shim and with the real wp_unslash() defined by
tests/AbilitiesTest.php. It runs separately via
phpunit-import-layout.xml. -->
<exclude>./tests/import-layout</exclude>
<!-- The sidebars-emulator suite needs the REAL
SiteOrigin_Panels_Sidebars_Emulator, which AbilitiesTest replaces with
a spy. It runs separately via phpunit-sidebars-emulator.xml. -->
<exclude>./tests/sidebars-emulator</exclude>
<!-- KsesDeepTest pins the REAL SiteOrigin_Panels_Admin::kses_deep()
predicate; AbilitiesTest's Admin shim claims the class name in this
suite, so it runs under phpunit-save-post.xml instead. -->
<exclude>./tests/KsesDeepTest.php</exclude>
<!-- The meta capability suite loads the REAL siteorigin-panels.php, which
defines SiteOrigin_Panels; several tests here define a stand-in under
that name. It runs separately via phpunit-meta-cap.xml. -->
<exclude>./tests/meta-cap</exclude>
<!-- The renderer suite drives the REAL SiteOrigin_Panels_Renderer, which asks the
REAL SiteOrigin_Panels_Admin::is_block_editor(); AbilitiesTest's Admin shim has
no such method. It runs separately via phpunit-renderer.xml. -->
<exclude>./tests/renderer</exclude>
</testsuite>
</testsuites>
</phpunit>