function ModerationStateViewsFieldUpdateTest::testViewsFieldIdUpdateWithoutViews

Tests that the update succeeds even if Views is not installed.

File

core/modules/content_moderation/tests/src/Functional/Update/ModerationStateViewsFieldUpdateTest.php, line 45

Class

ModerationStateViewsFieldUpdateTest
Test updating the views moderation state field plugin ID.

Namespace

Drupal\Tests\content_moderation\Functional\Update

Code

public function testViewsFieldIdUpdateWithoutViews() {
    $this->container
        ->get('module_installer')
        ->uninstall([
        'views',
    ]);
    $this->runUpdates();
}

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