public function ActionConfigTest::testUpdateActionPlugins in Drupal 9
Same name and namespace in other branches
- 8 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\UpdateCode
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());
}