You are here

public function ModerationStateViewsFieldUpdateTest::testViewsFieldIdUpdateWithoutViews in Drupal 8

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