ActionConfigTest.php in Drupal 9
File
core/modules/action/tests/src/Functional/Update/ActionConfigTest.php
View source
<?php
namespace Drupal\Tests\action\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class ActionConfigTest extends UpdatePathTestBase {
protected $defaultTheme = 'stark';
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.8.0.bare.standard.php.gz',
__DIR__ . '/../../../../tests/fixtures/update/drupal-8.action-3022401.php',
];
}
public function testUpdateActionPlugins() {
$config = $this
->config('action.settings');
$this
->assertSame(35, $config
->get('recursion_limit'));
$this
->runUpdates();
$config = $this
->config('action.settings');
$this
->assertTrue($config
->isNew());
}
}