You are here

public function ViewCoreUpdateTest::testPostUpdate in Drupal 8

Tests that the core key is removed from views configuration.

File

core/modules/views/tests/src/Functional/Update/ViewCoreUpdateTest.php, line 29

Class

ViewCoreUpdateTest
Tests the upgrade path for removing the core key from views configuration.

Namespace

Drupal\Tests\views\Functional\Update

Code

public function testPostUpdate() {
  $this
    ->assertArrayHasKey('core', \Drupal::config('views.view.frontpage')
    ->get());
  $this
    ->runUpdates();

  // Load and initialize our test view.
  $this
    ->assertArrayNotHasKey('core', \Drupal::config('views.view.frontpage')
    ->get());
}