You are here

public function NetlifyUpdateTest::testNetlifyConfigUpdate8201 in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 modules/build_hooks_netlify/tests/src/Functional/NetlifyUpdateTest.php \Drupal\Tests\build_hooks_netlify\Functional\NetlifyUpdateTest::testNetlifyConfigUpdate8201()

Tests netlify_update_8201().

See also

netlify_update_8201()

File

modules/build_hooks_netlify/tests/src/Functional/NetlifyUpdateTest.php, line 33

Class

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

Namespace

Drupal\Tests\build_hooks_netlify\Functional

Code

public function testNetlifyConfigUpdate8201() {
  $this
    ->assertTrue(\Drupal::service('config.storage')
    ->exists('build_hooks_netlify.netlifyConfig'));
  $this
    ->assertFalse(\Drupal::service('config.storage')
    ->exists('build_hooks_netlify.settings'));

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