ViewCoreUpdateTest.php in Drupal 8
File
core/modules/views/tests/src/Functional/Update/ViewCoreUpdateTest.php
View source
<?php
namespace Drupal\Tests\views\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class ViewCoreUpdateTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.4.0.bare.standard.php.gz',
];
}
public function testPostUpdate() {
$this
->assertArrayHasKey('core', \Drupal::config('views.view.frontpage')
->get());
$this
->runUpdates();
$this
->assertArrayNotHasKey('core', \Drupal::config('views.view.frontpage')
->get());
}
}
Classes
Name |
Description |
ViewCoreUpdateTest |
Tests the upgrade path for removing the core key from views configuration. |