aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/UnitTestCase.php2
-rw-r--r--tests/unit/includes/dba/_files/config.yml12
2 files changed, 14 insertions, 0 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 a8034f2de..e93486857 100644
--- a/tests/unit/includes/dba/_files/config.yml
+++ b/tests/unit/includes/dba/_files/config.yml
@@ -8,4 +8,16 @@ config:
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