aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-19 20:33:36 +0000
committerMario <mario@mariovavti.com>2024-01-19 20:33:36 +0000
commitd83e2daf36da64b8222b37ff63a278f189a1b59f (patch)
treef24fb93c6a5f5b5080379594f0fedce65b0a9421
parent8fe6aede03e6232234f69776c421e49e464e0a6b (diff)
parentecd4754f6d904158606b39ce40af3d834e4550e0 (diff)
downloadvolse-hubzilla-d83e2daf36da64b8222b37ff63a278f189a1b59f.tar.gz
volse-hubzilla-d83e2daf36da64b8222b37ff63a278f189a1b59f.tar.bz2
volse-hubzilla-d83e2daf36da64b8222b37ff63a278f189a1b59f.zip
Merge branch 'fix-postgres-ci' into 'dev'
tests: Remove id from db fixtures. See merge request hubzilla/core!2087
-rw-r--r--tests/unit/UnitTestCase.php2
-rw-r--r--tests/unit/includes/dba/_files/config.yml14
2 files changed, 14 insertions, 2 deletions
diff --git a/tests/unit/UnitTestCase.php b/tests/unit/UnitTestCase.php
index 97ac1576e..0bf7b547a 100644
--- a/tests/unit/UnitTestCase.php
+++ b/tests/unit/UnitTestCase.php
@@ -72,6 +72,8 @@ class UnitTestCase extends TestCase {
}
protected function setUp() : void {
+ $myclass = get_class($this);
+ logger("[*] Running test: {$myclass}::{$this->getName(true)}", LOGGER_DEBUG);
if ( \DBA::$dba->connected ) {
// Create a transaction, so that any actions taken by the
// tests does not change the actual contents of the database.
diff --git a/tests/unit/includes/dba/_files/config.yml b/tests/unit/includes/dba/_files/config.yml
index 80b9ba12f..e93486857 100644
--- a/tests/unit/includes/dba/_files/config.yml
+++ b/tests/unit/includes/dba/_files/config.yml
@@ -1,13 +1,23 @@
---
config:
-
- id: 1
cat: system
k: do_not_check_dns
v: true
-
- id: 2
cat: system
k: not_allowed_email
v: 'baduser@example.com,baddomain.com,*.evil.org'
+ -
+ cat: system
+ k: debugging
+ v: true
+ -
+ cat: system
+ k: loglevel
+ v: 2
+ -
+ cat: system
+ k: logfile
+ v: tests/results/unit_test.log