Compare commits

..

6 Commits

Author SHA1 Message Date
Guy Sartorelli
169cc702bb
Merge 94dc070f5ad2df4cc69309960d08ceabd3e39ff8 into afdd95eed89f498252d19b674c9aaaee26053372 2024-09-27 14:55:13 +12:00
Guy Sartorelli
afdd95eed8
Merge pull request #11407 from creative-commoners/pulls/6/phpunit-xml
MNT Update phpunit xml file for phpunit 11
2024-09-27 10:50:46 +12:00
github-actions
30e652b761 Merge branch '5' into 6 2024-09-26 22:19:15 +00:00
Steve Boyd
4195700f0b MNT Update phpunit xml file for phpunit 11 2024-09-27 09:42:35 +12:00
Guy Sartorelli
c224a84b3a
Merge pull request #11241 from Ofthemasses/patch-1
FIX Return null error solved for DBQueryBuilder::shouldBuildTraceComment
2024-09-26 10:40:39 +12:00
Finlay Metcalfe
8b4865ed2c
FIX Return null error solved for DBQueryBuilder::shouldBuildTraceComment 2024-05-16 14:04:13 +12:00
2 changed files with 29 additions and 37 deletions

View File

@ -1,38 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Standard module phpunit configuration.
Requires PHPUnit ^9
-->
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd">
<testsuites>
<testsuite name="Default">
<directory>tests/php</directory>
</testsuite>
<!-- Framework ORM tests are split up to run in parallel -->
<!-- Framework ORM tests are split up to run in parallel in github actions CI -->
<testsuite name="framework-core">
<!-- Will be run in github actions CI with option exclude-filter /ORM/ -->
<directory>tests/php</directory>
<exclude>
<directory>tests/php/ORM</directory>
</exclude>
</testsuite>
<testsuite name="framework-orm">
<directory>tests/php/ORM</directory>
<!-- Will be run in github actions CI with option filter /ORM/ -->
<directory>tests/php</directory>
</testsuite>
<testsuite name="cms">
<directory>vendor/silverstripe/cms/tests</directory>
</testsuite>
<!-- Cache suite is separate so it only runs what it needs to run. Intentionally also included in core above. -->
<!-- Cache suite is separate so it only runs what it needs to run -->
<testsuite name="framework-cache-only">
<directory>tests/php/Core/Cache</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<source>
<include>
<directory suffix=".php">.</directory>
</include>
<exclude>
<directory suffix=".php">tests/</directory>
<directory suffix=".php">thirdparty/</directory>
</exclude>
</whitelist>
</filter>
</source>
</phpunit>

View File

@ -86,7 +86,7 @@ class DBQueryBuilder
if (Environment::hasEnv('SS_TRACE_DB_QUERY_ORIGIN')) {
return (bool) Environment::getEnv('SS_TRACE_DB_QUERY_ORIGIN');
}
return static::config()->get('trace_query_origin');
return static::config()->get('trace_query_origin') ?? false;
}
/**