You are here

public function CircleCiUpdateTest::testCircleConfigUpdate8201 in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x modules/build_hooks_circleci/tests/src/Functional/CircleCiUpdateTest.php \Drupal\Tests\build_hooks_circleci\Functional\CircleCiUpdateTest::testCircleConfigUpdate8201()

Tests circleci_update_8201().

See also

circleci_update_8201()

File

modules/build_hooks_circleci/tests/src/Functional/CircleCiUpdateTest.php, line 33

Class

CircleCiUpdateTest
Defines a class for testing the update to the config entity.

Namespace

Drupal\Tests\build_hooks_circleci\Functional

Code

public function testCircleConfigUpdate8201() {
  $this
    ->assertTrue(\Drupal::service('config.storage')
    ->exists('build_hooks_circleci.circleCiConfig'));
  $this
    ->assertFalse(\Drupal::service('config.storage')
    ->exists('build_hooks_circleci.settings'));

  // Run updates.
  $this
    ->runUpdates();
  $this
    ->assertFalse(\Drupal::service('config.storage')
    ->exists('build_hooks_circleci.circleCiConfig'));
  $this
    ->assertTrue(\Drupal::service('config.storage')
    ->exists('build_hooks_circleci.settings'));
}