function ViewCoreUpdateTest::testPostUpdate
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\UpdateCode
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());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.