drupal: make simpletest DB URL configurable

This commit is contained in:
Oliver Davies 2024-08-10 13:07:18 +01:00
parent 5eb658ddec
commit afcca18c9e
4 changed files with 14 additions and 3 deletions

View file

@ -105,7 +105,15 @@ final class ConfigDto
#[Assert\Collection(
allowExtraFields: false,
fields: ['docroot' => new Assert\Choice([null, 'web', 'docroot'])],
fields: [
'docroot' => new Assert\Choice([null, 'web', 'docroot']),
'simpletest' => new Assert\Optional(
new Assert\Collection([
'db' => new Assert\Optional(new Assert\Type('string')),
]),
),
],
)]
public array $drupal;