You are here

protected function EasyEmailTestBase::removeField in Easy Email 2.0.x

Same name and namespace in other branches
  1. 8 tests/src/Functional/EasyEmailTestBase.php \Drupal\Tests\easy_email\Functional\EasyEmailTestBase::removeField()

Parameters

\Drupal\easy_email\Entity\EasyEmailTypeInterface $easy_email_type:

string $field_name:

11 calls to EasyEmailTestBase::removeField()
EasyEmailSendTest::testSendHtmlOnly in tests/src/Functional/EasyEmailSendTest.php
Tests email sending with HTML version only
EasyEmailSendTest::testSendNoKeyField in tests/src/Functional/EasyEmailSendTest.php
Tests email sending without a unique key field to prevent duplicates
EasyEmailSendTest::testSendPlainOnly in tests/src/Functional/EasyEmailSendTest.php
Tests email sending with plain text version only
EasyEmailSendTest::testSendWithoutBccAddress in tests/src/Functional/EasyEmailSendTest.php
Tests email sending without a BCC address field
EasyEmailSendTest::testSendWithoutBccUid in tests/src/Functional/EasyEmailSendTest.php
Tests email sending without a BCC UID field

... See full list

File

tests/src/Functional/EasyEmailTestBase.php, line 209

Class

EasyEmailTestBase
Class EasyEmailTestBase

Namespace

Drupal\Tests\easy_email\Functional

Code

protected function removeField(EasyEmailTypeInterface $easy_email_type, $field_name) {
  $this
    ->drupalGet('admin/structure/email-templates/templates/' . $easy_email_type
    ->id() . '/edit/fields/easy_email.' . $easy_email_type
    ->id() . '.' . $field_name . '/delete');
  $this
    ->submitForm([], 'Delete');
}