public function SimplenewsSynchronizeFieldsTest::setUp in Simplenews 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/SimplenewsSynchronizeFieldsTest.php \Drupal\Tests\simplenews\Kernel\SimplenewsSynchronizeFieldsTest::setUp()
- 3.x tests/src/Kernel/SimplenewsSynchronizeFieldsTest.php \Drupal\Tests\simplenews\Kernel\SimplenewsSynchronizeFieldsTest::setUp()
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ SimplenewsSynchronizeFieldsTest.php, line 28
Class
- SimplenewsSynchronizeFieldsTest
- Tests that fields shared by user account and subscribers are synchronized.
Namespace
Drupal\Tests\simplenews\KernelCode
public function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installEntitySchema('simplenews_subscriber');
$this
->installSchema('system', array(
'sequences',
'sessions',
));
$this
->config('system.mail')
->set('interface.default', 'test_mail_collector')
->save();
$this
->config('simplenews.settings')
->set('subscriber.sync_fields', TRUE)
->save();
ConfigurableLanguage::create(array(
'id' => 'fr',
))
->save();
}