protected function CourierSystemTest::setUp in Courier 2.x
Same name and namespace in other branches
- 8 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 41
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',
]);
$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',
];
}