You are here

function SimplenewsAdministrationTest::getNewsletterFieldId in Simplenews 8

Implement getNewsletterFieldId($newsletter_id)

1 call to SimplenewsAdministrationTest::getNewsletterFieldId()
SimplenewsAdministrationTest::testNewsletterSettings in src/Tests/SimplenewsAdministrationTest.php
Test various combinations of newsletter settings.

File

src/Tests/SimplenewsAdministrationTest.php, line 37

Class

SimplenewsAdministrationTest
Managing of newsletter categories and content types.

Namespace

Drupal\simplenews\Tests

Code

function getNewsletterFieldId($newsletter_id) {
  return 'edit-subscriptions-' . str_replace('_', '-', $newsletter_id);
}