
| Current Path : /var/www/html1/web/core/modules/system/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/web/core/modules/system/tests/src/Functional/Update/AdminThemeUpdateTest.php |
<?php
namespace Drupal\Tests\system\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
* Tests system.theme:admin is updated.
*
* @group system
* @group legacy
*/
class AdminThemeUpdateTest extends UpdatePathTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.6.0.bare.testing.php.gz',
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.admin_theme_0.php',
];
}
/**
* Tests that system.theme:admin is updated as expected.
*/
public function testUpdateHookN() {
$this->assertSame('0', $this->config('system.theme')->get('admin'));
$this->runUpdates();
$this->assertSame('', $this->config('system.theme')->get('admin'));
}
}