You are here

protected function MissingFieldsTest::setUp in Entity Share 8.3

Overrides EntityShareClientFunctionalTestBase::setUp

File

modules/entity_share_client/tests/src/Functional/MissingFieldsTest.php, line 37

Class

MissingFieldsTest
Functional test class for non-existing fields on client website.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Need to populate field mappings now.
  $this->remoteManager
    ->getfieldMappings($this->remote);
  $this
    ->postSetupFixture();

  // Delete fields.
  FieldConfig::loadByName('node', 'es_test', 'field_es_test_text_plain_long')
    ->delete();
  FieldConfig::loadByName('node', 'es_test', 'field_es_test_taxonomy')
    ->delete();
}