
| Current Path : /var/www/html1/testsite/web/core/modules/views/tests/src/Functional/Update/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/testsite/web/core/modules/views/tests/src/Functional/Update/ViewCoreUpdateTest.php |
<?php
namespace Drupal\Tests\views\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
* Tests the upgrade path for removing the core key from views configuration.
*
* @see views_post_update_remove_core_key()
*
* @group Update
* @group legacy
*/
class ViewCoreUpdateTest extends UpdatePathTestBase {
/**
* {@inheritdoc}
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.4.0.bare.standard.php.gz',
];
}
/**
* Tests that the core key is removed from views configuration.
*/
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());
}
}