You are here

protected function ConfigHandlerTest::setUp in Update helper 2.x

Same name and namespace in other branches
  1. 8 tests/src/Kernel/ConfigHandlerTest.php \Drupal\Tests\update_helper\Kernel\ConfigHandlerTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/ConfigHandlerTest.php, line 84

Class

ConfigHandlerTest
Automated tests for ConfigName class.

Namespace

Drupal\Tests\update_helper\Kernel

Code

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

  /** @var \Drupal\Core\Config\FileStorage $extensionStorage */
  $extensionStorage = \Drupal::service('config_update.extension_storage');
  $this->startingSha1 = sha1_file($extensionStorage
    ->getFilePath('field.storage.node.body'));
}