Skip to content

Commit a1440c7

Browse files
committed
Merge branch 'test-everything' into html-api/allow-any-fragment-context
2 parents 40f4967 + 80c5983 commit a1440c7

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

my.bootstrap.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
// Core stuff.
4+
require_once __DIR__ . '/wp-test-config.php';
5+
wp_cache_init();
6+
require_wp_db();
7+
8+
require_once __DIR__ . '/tests/phpunit/includes/phpunit-adapter-testcase.php';
9+
require_once __DIR__ . '/tests/phpunit/includes/abstract-testcase.php';
10+
require_once __DIR__ . '/tests/phpunit/includes/testcase.php';
11+
require_once __DIR__ . '/tests/phpunit/includes/functions.php';
12+
13+
if ( ! defined( 'DIR_TESTDATA' ) ) {
14+
define( 'DIR_TESTDATA', __DIR__ . '/tests/phpunit/data' );
15+
}
16+

my.phpunit.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.2/phpunit.xsd"
5+
bootstrap="my.bootstrap.php"
6+
testdox="true"
7+
colors="true"
8+
>
9+
<php>
10+
<const name="WP_TESTS_DOMAIN" value="example.org"/>
11+
</php>
12+
<testsuites>
13+
<testsuite name="formatting">
14+
<directory suffix=".php">tests/phpunit/tests/formatting</directory>
15+
</testsuite>
16+
<testsuite name="kses">
17+
<file>tests/phpunit/tests/kses.php</file>
18+
</testsuite>
19+
<testsuite name="html-api">
20+
<directory suffix=".php">tests/phpunit/tests/html-api</directory>
21+
</testsuite>
22+
</testsuites>
23+
</phpunit>

0 commit comments

Comments
 (0)