You are here

protected function AuthenticationTestBase::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

3 calls to AuthenticationTestBase::postSetupFixture()
AuthenticationAnonymousTest::setUp in modules/entity_share_client/tests/src/Functional/AuthenticationAnonymousTest.php
AuthenticationBasicAuthTest::setUp in modules/entity_share_client/tests/src/Functional/AuthenticationBasicAuthTest.php
AuthenticationOAuthTest::setUp in modules/entity_share_client/tests/src/Functional/AuthenticationOAuthTest.php

File

modules/entity_share_client/tests/src/Functional/AuthenticationTestBase.php, line 76

Class

AuthenticationTestBase
Base class for functional tests of ES authorization plugins.

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();
}