You are here

public function ActionConfigTest::testUpdateActionPlugins in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/action/tests/src/Functional/Update/ActionConfigTest.php \Drupal\Tests\action\Functional\Update\ActionConfigTest::testUpdateActionPlugins()

Tests upgrading action settings.

See also

\action_post_update_remove_settings()

File

core/modules/action/tests/src/Functional/Update/ActionConfigTest.php, line 35

Class

ActionConfigTest
Tests removing action module's configuration.

Namespace

Drupal\Tests\action\Functional\Update

Code

public function testUpdateActionPlugins() {
  $config = $this
    ->config('action.settings');
  $this
    ->assertSame(35, $config
    ->get('recursion_limit'));

  // Run updates.
  $this
    ->runUpdates();
  $config = $this
    ->config('action.settings');
  $this
    ->assertTrue($config
    ->isNew());
}