protected function CourierSystemTest::setUp in Courier 8
Same name and namespace in other branches
- 2.x courier_system/tests/src/Kernel/CourierSystemTest.php \Drupal\Tests\courier_system\Kernel\CourierSystemTest::setUp()
Overrides KernelTestBase::setUp
File
- courier_system/
tests/ src/ Kernel/ CourierSystemTest.php, line 37
Class
- CourierSystemTest
- Tests Courier system.
Namespace
Drupal\Tests\courier_system\KernelCode
protected function setUp() {
parent::setUp();
$this
->installConfig([
'courier',
'courier_system',
]);
$this
->installSchema('system', [
'sequences',
'queue',
]);
$this
->installEntitySchema('courier_message_queue_item');
$this
->installEntitySchema('courier_template_collection');
$this
->installEntitySchema('courier_email');
$this
->installEntitySchema('user');
$this
->config('system.mail')
->set('interface.default', 'test_mail_collector')
->save();
$this->cron = $this->container
->get('cron');
$this->mailIds = [
'register_admin_created',
'register_no_approval_required',
'register_pending_approval',
'password_reset',
'status_activated',
'status_blocked',
'cancel_confirm',
'status_canceled',
];
}