Skip to content

[database_tests] section no longer generated when executing php tests #17856

@tsteur

Description

@tsteur

to reproduce remove the section [database_tests] from your local tests. It will then result in a database access exception.

That's because in https://github.com/matomo-org/matomo/blob/4.4.1/tests/PHPUnit/bootstrap.php#L126 it uses a mock config which has "allowSave = false".

It must have regressed at some point but not sure where.

The goals are:

  • Not throw an exception when database_tests section is not configured.
  • Automatically pre-fill the database_tests section in the config/config.ini.php

image
image

or is this maybe now expected?

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.RegressionIndicates a feature used to work in a certain way but it no longer does even though it should.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions