Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 9b7fda2

Browse files
authored
Merge pull request #66 from codedge/fixes-test-31
Fixes test 31
2 parents 1c6eefe + 4326422 commit 9b7fda2

3 files changed

Lines changed: 31 additions & 25 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: ['7.4', '8.0']
10+
php: ['8.0']
1111
laravel: [7.*, 8.*]
1212
dependency-version: [prefer-stable]
1313
include:

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^7.4 || ^8.0",
23+
"php": "^8.0",
2424
"ext-json": "*",
25-
"statamic/cms": "^3.0.48"
25+
"statamic/cms": "^3.1"
2626
},
2727
"require-dev": {
2828
"orchestra/testbench": "^6.15.0",
@@ -54,6 +54,9 @@
5454
}
5555
},
5656
"scripts": {
57+
"pre-update-cmd": [
58+
"Statamic\\Console\\Composer\\Scripts::preUpdateCmd"
59+
],
5760
"test": "./vendor/bin/phpunit --debug --testdox",
5861
"test-clover-coverage": "./vendor/bin/phpunit --coverage-clover clover.xml",
5962
"test-coverage": "./vendor/bin/phpunit --coverage-html coverage"

phpunit.xml.dist

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
35
backupGlobals="false"
46
backupStaticAttributes="false"
57
cacheResult="false"
68
colors="true"
79
verbose="true"
8-
convertErrorsToExceptions="true"
10+
convertErrorsToExceptions="false"
911
convertNoticesToExceptions="true"
1012
convertWarningsToExceptions="true"
1113
processIsolation="true"
12-
stopOnFailure="true">
13-
<testsuites>
14-
<testsuite name="Test Suite">
15-
<directory>tests</directory>
16-
</testsuite>
17-
</testsuites>
18-
<filter>
19-
<whitelist>
20-
<directory suffix=".php">src/</directory>
21-
</whitelist>
22-
</filter>
23-
<php>
24-
<env name="APP_ENV" value="testing"/>
25-
<env name="APP_DEBUG" value="true"/>
26-
<env name="APP_KEY" value="base64:mIRM5Fpb6DtuRIejBwkqpt3c/ovlFZsSpo66efwo3g0="/>
27-
<env name="CACHE_DRIVER" value="array"/>
28-
<env name="SESSION_DRIVER" value="array"/>
29-
<env name="QUEUE_DRIVER" value="sync"/>
30-
<env name="MAIL_DRIVER" value="array"/>
31-
</php>
14+
stopOnFailure="true"
15+
>
16+
<coverage>
17+
<include>
18+
<directory suffix=".php">src/</directory>
19+
</include>
20+
</coverage>
21+
<testsuites>
22+
<testsuite name="Test Suite">
23+
<directory>tests</directory>
24+
</testsuite>
25+
</testsuites>
26+
<php>
27+
<env name="APP_ENV" value="testing"/>
28+
<env name="APP_DEBUG" value="true"/>
29+
<env name="APP_KEY" value="base64:mIRM5Fpb6DtuRIejBwkqpt3c/ovlFZsSpo66efwo3g0="/>
30+
<env name="CACHE_DRIVER" value="array"/>
31+
<env name="SESSION_DRIVER" value="array"/>
32+
<env name="QUEUE_DRIVER" value="sync"/>
33+
<env name="MAIL_DRIVER" value="array"/>
34+
</php>
3235
</phpunit>

0 commit comments

Comments
 (0)