You are here

protected function EmbeddedEntityTest::postSetupFixture in Entity Share 8.3

Helper function.

Need to separate those steps from the setup in the base class, because some sub-class setup may change the content of the fixture.

Overrides EntityShareClientFunctionalTestBase::postSetupFixture

1 call to EmbeddedEntityTest::postSetupFixture()
EmbeddedEntityTest::setUp in modules/entity_share_client/tests/src/Functional/EmbeddedEntityTest.php
@SuppressWarnings(PHPMD.UndefinedVariable) Bug in PHPMD,

File

modules/entity_share_client/tests/src/Functional/EmbeddedEntityTest.php, line 98

Class

EmbeddedEntityTest
Functional test class for embedded entities in RTE fields.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

protected function postSetupFixture() {
  $this
    ->prepareContent();
  $this
    ->populateRequestService();

  // Delete the physical file after populating the request service.
  foreach (static::$filesData as $file_data) {
    $this->fileSystem
      ->delete($file_data['uri']);
  }
  $this
    ->deleteContent();
}