Feature Request for Multisite Support

Created on 14 September 2022, over 2 years ago
Updated 8 August 2023, over 1 year ago

Problem/Motivation

The current implementation of the InteractsWithSettings trait only loads settings from the default site.
It would be great if a test could specify which sites config/setting file should be installed.

Proposed resolution

An additional public method that could be called to specify a site. Something such as setSite(string $siteName) perhaps?

Remaining tasks

Implement new method for running tests in a multisite environment.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom james hawthorn-byng

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom aidenbradley

    Hi James,

    A recent update to `1.0.x-dev` has introduced the recommended method of `setSite`.

    You can now call `$this->setSite('my_site')` before the test attempts to load any `settings.php` file.

    Let me know how you get on!

    Thanks!

Production build 0.71.5 2024