Skip to content

Commit 8d11a2d

Browse files
committed
Move phpunit files into .github and add mariadb xml
1 parent a05a42f commit 8d11a2d

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

.github/phpunit-mariadb-github.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="true"
4+
colors="true"
5+
processIsolation="false"
6+
stopOnFailure="false"
7+
bootstrap="../tests/bootstrap.php"
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
9+
cacheDirectory=".phpunit.cache"
10+
backupStaticProperties="false">
11+
<testsuites>
12+
<testsuite name="phpBB Test Suite">
13+
<directory suffix="_test.php">../tests</directory>
14+
<exclude>../tests/functional</exclude>
15+
<exclude>../tests/lint_test.php</exclude>
16+
</testsuite>
17+
<testsuite name="phpBB Functional Tests">
18+
<directory suffix="_test.php">../tests/functional</directory>
19+
</testsuite>
20+
</testsuites>
21+
<groups>
22+
<exclude>
23+
<group>slow</group>
24+
</exclude>
25+
</groups>
26+
<source restrictDeprecations="true">
27+
<include>
28+
<directory>../</directory>
29+
</include>
30+
<exclude>
31+
<directory>../tests/</directory>
32+
<directory>../language/</directory>
33+
<directory>../migrations/</directory>
34+
</exclude>
35+
</source>
36+
<php>
37+
<server name="PHPBB_TEST_DBMS" value="mysqli"/>
38+
<server name="PHPBB_TEST_DBHOST" value="0.0.0.0"/>
39+
<server name="PHPBB_TEST_DBPORT" value="3306"/>
40+
<server name="PHPBB_TEST_DBNAME" value="phpbb_tests"/>
41+
<server name="PHPBB_TEST_DBUSER" value="root"/>
42+
<server name="PHPBB_TEST_DBPASSWD" value=""/>
43+
<server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/>
44+
<server name="PHPBB_FUNCTIONAL_URL" value="http://localhost/"/>
45+
</php>
46+
</phpunit>

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,15 @@ jobs:
306306
with:
307307
repository: phpbb-extensions/test-framework
308308
ref: ${{ env.PHPBB_BRANCH }}
309-
path: phpBB4/.shared
309+
path: phpBB4/test-framework
310310

311311
- name: Setup PHPUnit files
312312
env:
313313
DB: ${{steps.database-type.outputs.db}}
314314
COVERAGE: ${{ matrix.COVERAGE == '1' && '1' || '0' }}
315315
run: |
316316
if [ "$COVERAGE" == '1' ]; then
317-
mkdir -p "phpBB/ext/$EXTNAME/.github" && cp .shared/phpunit* "$_"
317+
mkdir -p "phpBB/ext/$EXTNAME/.github" && cp test-framework/.github/phpunit* "$_"
318318
else
319319
mkdir -p "phpBB/ext/$EXTNAME/.github" && cp .github/phpunit* "$_"
320320
fi

0 commit comments

Comments
 (0)