You are here

public function MigrateUpgradeExecuteTestBase::useTestMailCollector in Drupal 10

Helper to set the test mail collector in settings.php.

File

core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php, line 64

Class

MigrateUpgradeExecuteTestBase
Provides a base class for testing a complete upgrade via the UI.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional

Code

public function useTestMailCollector() {

  // Set up an override.
  $settings['config']['system.mail']['interface']['default'] = (object) [
    'value' => 'test_mail_collector',
    'required' => TRUE,
  ];
  $this
    ->writeSettings($settings);
}