function ActionConfigTest::testUpdateActionPlugins

Same name in other branches
  1. 8.9.x 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 34

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.