Avoid writing to log files during unit tests (#9373)

* Avoid writing to log files during unit tests

* Translate PHPDoc of `record()`

* Move environment variable into `phpunit.xml` and use tabs for indents
This commit is contained in:
Inverle authored and GitHub committed 2026-09-30 21:50:47 +02:00
1 parent 05bfbb9f33
commit 1f055da218
3 files changed
+19 -16

No files matched your search

+11 -8
View File
@@ -1,12 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
bootstrap="./tests/bootstrap.php"
displayDetailsOnAllIssues="true"
failOnAllIssues="true"
bootstrap="./tests/bootstrap.php"
displayDetailsOnAllIssues="true"
failOnAllIssues="true"
>
<testsuites>
<testsuite name="default">
<directory>./tests</directory>
</testsuite>
</testsuites>
<php>
<env name="FRESHRSS_ENV" value="silent" force="true"/> <!-- To avoid writing into log files -->
</php>
<testsuites>
<testsuite name="default">
<directory>./tests</directory>
</testsuite>
</testsuites>
</phpunit>